Worktime tracking tool for the ABW 33
[] Add middleware for global request validation error
All commands are run from the root of the project, from a terminal:
npm installInstalls dependenciesnpm run devStarts local dev server atlocalhost:8033npm run buildBuild your production site to./dist/npm run previewPreview your build locally, before deployingnpm run astro ...Run CLI commands likeastro add,astro checknpm run astro --helpGet help using the Astro CLInpx prisma generateGenerates the correct data source client codenpx prisma migrate devReads the data sources and data model definition to create a new migration
cp .env.sample .envCreate an .env file by copying the .env.sample- Adjust to the URL of the actual host machine in
.env > PUBLIC_API_URL docker compose buildBuilds the application imagedocker compose up -dStarts the whole application environment
- Node.js is installed locally
- Database container is already up and running
- Adjust these entries in .env and revert these changes after successful execution of commands
WTTT_33_DB_HOST=localhostWTTT_33_DB_PORT=63306
npx prisma generateGenerates the correct data source client codenpx prisma migrate devCreates tables in the databasenode prisma/seed.mjsSeeds the local database with test data