This is the code repository for the official website of teekkarikomissio.fi, which features our initiatives, activities, and informational resources.
The teekkarikomissio.fi website is built using Next.js, a React framework that enables functionality such as server-side rendering and generating static websites for React-based web applications.
To get started with development, follow these steps:
-
Clone the repository: [https://github.com/Teekkarikomissio/teekkarikomissio.fi/tree/master]
-
Navigate to the project directory:
cd teekkarikomissio.fi
- Check that you have a recent enough Node version by running
nvm use
- Install the dependencies:
npm install
- Start the development server:
npm run dev
This will start the development server on http://localhost:3000.
- Build for production:
npm run build
This command builds the application for production usage but Netlify usually does it for us. You can still build it to check for errors by running:
npm start
Netlify hooks take care of this for the most part. If you push to master
your code will show up in a minute under teekkarikomissio.fi domain.
If you push your own branch netlify will create a preview version of the site so that you can show it to others. Usually merge from your own branch is the safest way.
If you want to add a new spoken language, you can add a new dictionary for texts under /dictionaries/your-language.json
. Then do modifications to following files:
i18n-config.ts
get-dictionary.ts
i18n-config.ts
Navbar.tsx
And to get full route translations working:
next.config.js
netlify.toml
(If you stick with Netlify)
If you'd like to contribute to the project, please open an issue or create a pull request.
To report bugs, please use the issues section of this repository.
The project is licensed under the MIT License. See the LICENSE file for details.
- Miika Peltotalo - Initial work
We'd like to thank all the contributors who have helped shape the teekkarikomissio.fi website.