Skip to content

A simple time tracking tool to visulize bookings with nfc cards

License

Notifications You must be signed in to change notification settings

KaiWissel/wttt-33

Repository files navigation

WTTT-33

Worktime tracking tool for the ABW 33

Live-Demo

https://wttt-33.netlify.app/

TODO

[] Add middleware for global request validation error

🧞 Commands

All commands are run from the root of the project, from a terminal:

  • npm install Installs dependencies
  • npm run dev Starts local dev server at localhost:8033
  • npm run build Build your production site to ./dist/
  • npm run preview Preview your build locally, before deploying
  • npm run astro ... Run CLI commands like astro add, astro check
  • npm run astro --help Get help using the Astro CLI
  • npx prisma generate Generates the correct data source client code
  • npx prisma migrate dev Reads the data sources and data model definition to create a new migration

Build and setup WTTT-33 server

  • 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 image
  • docker compose up -d Starts the whole application environment

Init database

Precondition

  • 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

Commands

  • npx prisma generate Generates the correct data source client code
  • npx prisma migrate dev Creates tables in the database
  • node prisma/seed.mjs Seeds the local database with test data

About

A simple time tracking tool to visulize bookings with nfc cards

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published