Backend server powering the Treasure Development Kit
- >= Node 20.11.0
- PostgreSQL server
- AWS credentials set up for Secrets Manager and Key Management Service access
Install dependencies:
pnpm install
Create .env
file based on example and fill in with relevant environment variables:
cp .env.example .env
Generate database client:
pnpm generate
Create initial tables in database:
pnpm db:migrate
Start server:
pnpm dev
Merge to the main
branch to deploy to the development environment.
Add a tag with the api-v
prefix to deploy to the production environment (e.g., api-v1.0.0
).