Simple webapp to mark students and employees entry and exit times. Made by students, for students. Built in SvelteKit + Postgres (with fuzzystrmatch extention).
The following programs are needed to develop this project:
nodepnpmdocker/podmandocker compose/podman-composemake(optional)
Setup enviroment variables (adjust as needed):
cp .env.example .envInstall dependencies:
pnpm i --frozen-lockfileor:
make installYou also need docker (with compose plugin) or podman (with podman-compose) to start up the Postgres database:
docker compose up -dor:
podman-compose up -dTo start the app (with database migrations):
pnpm run devThis will start the server on: http://localhost:5173.
Just use the docker-compose.prod.yml:
make prod-startor:
docker compose -f docker-compose.prod.yml up -dor:
podman-compose -f docker-compose.prod.yml up -dIn order to update you production deployment, first run:
git pullAnd after that rebuild the images:
make prod-updateor:
docker compose -f docker-compose.prod.yml up -d --buildAfter deploying the project, either for development or production, visit /admin path and in the sidebar create at least 1 building, at least 1 department and at least 1 user. Afterwards, by going to the homepage you will be able to log in using the created user credentials. For all of the admin actions you must pass the secret set via the environment variable SECRET.