- Install docker + compose
- Rename .env_example --> .env and modify as you like.
- Run docker compose build --no-cache
- Run docker compose up -d
- Navigate to localhost:3000
The frontend is bundled with Vite.
Once the backend is running (on port 3000), you can navigate to frontend/,
run npm i and npm run dev to run the Vite development server that has
hot reload and all that jazz.
Database is currently preseeded with test data from preseed/preseed.csv
To add new migration, locally run: ./node_modules/.bin/node-pg-migrate create <MIGRATION_NAME> and modify created file in /migrations directory.
Migrations are run (if needed) when docker container starts. wait-for-it.sh will ensure that psql container is up and accepting connections before running migrations.
Remove comments from "jwt-test-network" for local jwt testing, to allow joining containers from 2 different compose runs to same docker network.
https://pvarki.github.io/typescript-liveloki-app/
In directory tests, use
npm run test:integrationwith the server running in localhost:3000 as it does by default after docker compose up -d.