Skip to content

sgsharma/nestjs-graphql-otel

Repository files navigation

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

About

A nestjs + graphql example app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published