Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 1.14 KB

README.md

File metadata and controls

38 lines (29 loc) · 1.14 KB

NOTE: This repository is based on NestJS-Yoga-Example

NestJS-Yoga-Example

  • NestJS 10
  • TypeORM 0.3

Dependencies

Prerequisites

  • Postgres
brew install postgresql@13
export PATH="/opt/homebrew/opt/postgresql@13/bin:$PATH"
# Alternatively, add to your shell config
# echo 'export PATH="/opt/homebrew/opt/postgresql@13/bin:$PATH"' >> ~/.zshrc
initdb --locale=C -E UTF-8 /opt/homebrew/var/postgresql@13
pg_ctl -D '/opt/homebrew/var/postgresql@13' -l logfile start
createuser -s postgres

Running the App

npm ci
npm run typeorm:cli -- -d ./src/database/database-ormconfig.cli.ts migration:generate ./src/database/migrations/generated
npm run typeorm:cli -- migration:create ./src/database/migrations/created
npm run typeorm:cli -- -d ./src/database/database-ormconfig.cli.ts migration:run
npm run typeorm:cli -- -d ./src/database/database-ormconfig.cli.ts schema:sync

export HONEYCOMB_API_KEY=<YOUR-HONEYCOMB-API-KEY>
npm run build
npm run start:build