Webapp for jubiläums event
| drizzle | ||
| nix | ||
| src | ||
| .envrc | ||
| .gitignore | ||
| bun.lock | ||
| drizzle.config.ts | ||
| flake.lock | ||
| flake.nix | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
Jubiläums Takt
A webapp to track jubiläums takte for an event at HSKD
Static files
Static files will get bundeld into the executable in the end and therefore need to be known at compile time.
This is achieved over importing them inside src/static/index.ts
and including them inside the STATIC dictonary.
As all static files will be hashed and served with imutable Cache-Control header,
all references to the static files should be made over the url function,
which can be imported from ~/static.
Development
Install dependencies
$ bun install --forzen-lockfile --ignore-scripts
Run the server and tailwind
$ bun run dev
$ bun run css:watch
Nix
Enter the dev shell
$ nix develop
Run the server and tailwind
$ bun run dev
$ nix run .#css_watch
Production
Install all dependencies
$ bun install --frozen-lockfile --ignore-scripts
Run the build script
$ bun run build
The executable will be placed inside the result directory
Nix
Build the application with:
$ nix build