/pass-the-pie-api

Simple NestJS service for a pie based APIs!

Primary LanguageTypeScript

Nest Logo

Description

A simple Rest API for giving and receiving pie based currencies. Written in NodeJS/NestJS/TypeORM.

Running the app

Currently, the preferred way to develop the app is via docker compose. All of the configuration files are setup to point to docker resources. The app can be ran and developed locally, but you will need to change the .env and ormconfig.json to point to localhost instead of postgres.

# development
$ docker compose up

Resources/Ports

Resource Port
REST API :3001/api
Swagger Docs :3001/docs

TODO

  • Document running TypeORM commands in Docker
  • Document Postgres migration/init processes
  • Publish swagger docs to Github Page
  • Complete data model for use scoring
  • Implement teams/groups
  • Auth at some point?

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov