Artist CRM API

Back-end for https://github.com/ivan-ngchakming/artist-crm-web

Setup Development Environment

Docker

Spin up development environment

docker compose up dev

Environment Variables

Create .env file at root directory.

PORT=8000

# Database
DB_PORT=5432
DB_HOST=postgres
DB_DATABASE_NAME=artist-crm
DB_USERNAME=postgres
DB_PASSWORD=postgres

Database Migration

Generate migration files

yarn typeorm migration:generate -n <name of migration file>

Run migration

yarn typeorm migration:run