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 install
Installs dependenciesnpm run dev
Starts local dev server atlocalhost:8033
npm run build
Build your production site to./dist/
npm run preview
Preview your build locally, before deployingnpm run astro ...
Run CLI commands likeastro add
,astro check
npm run astro --help
Get help using the Astro CLInpx prisma generate
Generates the correct data source client codenpx prisma migrate dev
Reads the data sources and data model definition to create a new migration
cp .env.sample .env
Create an .env file by copying the .env.sample- Adjust to the URL of the actual host machine in
.env > PUBLIC_API_URL
docker compose build
Builds the application imagedocker compose up -d
Starts 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=localhost
WTTT_33_DB_PORT=63306
npx prisma generate
Generates the correct data source client codenpx prisma migrate dev
Creates tables in the databasenode prisma/seed.mjs
Seeds the local database with test data