The web app frontend for the GrottoCenter project
This project uses Yarn & Yarn workspaces
For the backend server see GrottoCenter/grottocenter-api
- Install NodeJs (v20 minimum) and Yarn
- Run
yarnto install dependencies - Run
yarn startto launch the app
By default the app use the production api as backend. To modify it change the
REACT_APP_API_URLvariable in thepackages\web-app\.envfile
-
Configurations:
- eslint-config
eslint-config-typescriptprettier-configts-config
startStart Grottocenter frontbuildBuild the Grottocenter frontlintCheck linting ruleslint:fixSame aslintbut will also try to fix errorse2e:runRun the end to end test suite (require a running app)e2e:openOpen the end to end test suite browser (require a running app)storybookStart storybooktranslations:sync-with-enCompares a translation file with en.json to check synchronization (use:yarn translations:sync-with-en <target-file>)translations:update-enScans JSX files for translation keys and adds missing ones topackages/web-app/public/lang/en.json(automatically sorts the file afterwards)translations:sortSorts translation file keys alphabetically (case-insensitive):node scripts/translations/sort.js <path-to-json-file>
Github Actions is running 2 tasks on push and pull requests on develop :
- Lint
- Azure Static Web Apps deploy
To prevent a bad commit, we use the Git hooks husky
Commitlint rules define in commitlint config