The translation for all openfoodfacts GitHub repositories, including this one, is done in a Crowdin project: https://crowdin.com/project/openfoodfacts
In Crowdin, after selecting the target language, add open-prices-frontend
as a filter to check the translations that only belong to this GitHub repository.
If you don't already have Node.js install, we recommend using nvm
to manage different node versions.
We use the yarn for package management.
-
Install/update packages with command
yarn
-
Run in development mode with
yarn dev
After this you should be able to access the website at http://localhost:5173/.
-
Run the back-end on your device. To do so, get and run the code of the server here: https://github.com/openfoodfacts/open-prices.
-
You can start your first contribution 🎉
yarn build
yarn lint
There is also a pre-commit configuration set up with husky and lint-staged.
yarn test
// 1) list packages to update
yarn upgrade-interactive --latest
// 2) update package.json by bumping all non-major updgrades
// 3) update packages
yarn install