- Change to correct node version (found in
.nvmrc
) npm i
- See Environment variables for setting up Infisical for managing environment variables
- After setting up Infisical you can run the project with
npm run start
This project uses Biome.js. Please install Biome's VS Code plugin to get automatic linting + formatting on save, suggestions and refactoring.
This project is using Tanstack Router. It is fully type-safe.
Routing is file-based and we are using flat routing. Route files are inside /routes
folder. More info about how route file naming conventions found here.
Route typings and runtime definitions are generated automatically by Tanstack Router Vite plugin, when the project is started.
NOTE! Remember to start the project locally when creating new routes to get all the functionality and type-safety of the router during development.
Tanstack Router also provides Devtools. They help resolving router issues during development. Devtools will mount as a fixed, floating toggle in the corner of the screen to show and hide the devtools.
This project uses i18next for localization. Different features about what i18next can do can be found in the docs starting from here. As this is a React project, it uses react-i18next for compatibility layer. The documentation for it can be found here.
This project uses Infisical for managing environment variables. It provides a centralized way for serving environment variables to both CI/CD pipeline and local development. Proceed with the following steps to get started:
- Install Infisical CLI by referencing the official documentation here: Infisical CLI
- Request fellow developers to get access to
- Infisical organization
- VP-Kuljetus project
- Run
infisical login
and authenticate with your Infisical account- Select
Infisical Cloud
when asked
- Select
- Run
npm run start
- You will see in the terminal that Infisical has successfully injected the environment variables and the project has started
Run git submodule update --init
Run npm run build-client