- Deno
- MySQL
- Install docker latest version (>= 24)
- Start the database and app. The db container will create table automatically according to here.
docker compose up -d
- Enter the app container
docker compose exec app bash
- Run the migration for seed data
deno task db:migration
- test the API using endpoint http://localhost:8080/health
- Enter app container as above
- Run
deno task test
Warning
Run test will TRUNCATE all the tables, make sure to use dev database.
- if deno is installed with a existing database instead of using docker, the
project can start with
deno task dev
after database setup.
- constants.ts for available routes
- types/dto.ts for payload and response
- main.ts for more details
- use
scripts/gen_jwt_secret.ts
to generate key for production - Env should be stored securely (not .env file) and inject on deployment