TechnotronicOz / wisely-nest-api

Nest, Graphql, Postgres reservation API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wisely Test API

Take home project, built by Matt Carter stands up both a Graphql API

Build

Start Backing Services

$ docker compose up -d

Installation

Runs on Node 12 or 14. (Note: don't forget to cd api first!)

$ nvm use
$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Generating fixture data in Postgres

Uses Typeorm fixtures to insert test data into the database.

Status: currently broke :(

$ npm run seed:build

About

Nest, Graphql, Postgres reservation API


Languages

Language:TypeScript 98.7%Language:JavaScript 0.8%Language:Dockerfile 0.5%