/api-jo-ken-po

API JO KEN PO developed with NestJS + Prisma + Postgres.

Primary LanguageTypeScript

Build and Deploy to PRD

Description

JO KEN PO API development with NestJS + Prisma + Postgres. This project is the classic game JO KEN PO.
You can play JO KEN PO for here.

Installation

$ npm install

Running the app

You need create a copy of the file .env.example in the project root and rename to .env with your environment variables. You can run this script for it:

# create a copy of the .env.example and rename to .env
$ cat .env.example > .env

DEV

You need have install docker and docker-compose to up postgres database.

# run to start project in dev mode
$ npm run start:dev

Tests

Unit tests

# run
$ npm run test

Integration tests

You need have install docker and docker-compose to up postgres database. Obs: you cannot edit docker-compose.yaml and .env.example to work.

# run
$ npm run test:integration-local