Skip to content

SickSAMA/upline-api-server

Repository files navigation

upline-api-server

Setup After Pulling

create a new .env in the root folder and copy the content from .env.example to it.

Development

Start the service container

npm run docker-up:dev

Start the service normally (need postgres installed)

npm run dev

Test Production Build

Start the service container

npm run docker-up:prod

Start the service normally (need postgres installed)

npm run build

npm run start

Create New Env

  1. add new env in .env and .env.example
  2. add new env in CICD.yml
  3. add new env in src/configs/env.ts

Migrate DB

Create Migration

npm run migrate-db:generate ${name}

Run or Revert Migrations

npm run migrate-db:run

npm run migrate-db:revert

Update Node Version

  1. CICD.yml Build job node version
  2. Dockerfile Node image version
  3. migrate-db-*.yml Test job container node version

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published