Skip to content

Latest commit

 

History

History
59 lines (44 loc) · 1.77 KB

README.md

File metadata and controls

59 lines (44 loc) · 1.77 KB

Webster (Server)

Node.js nestjs TypeScript postgresql Prisma Passport JWT Nodemon .ENV

About

A graphic-design application, written in NestJS, with the use of PostgreSQL, Prisma.

Setup & Run

Prior to setup, create an .env file based on the .env.example file, and fill in the required vars.

Installation

# in the `server/` directory
$ yarn install
$ psql 'hostname'
$ CREATE DATABASE 'DB-NAME'
$ yarn run prisma:prepare
$ yarn run migrate:dev

Running the app

# development
$ yarn run dev

You can now access the API, using the port, provided in the .env file.

Test

# unit tests
$ yarn run test

# e2e tests
$ yarn run test:e2e

# test coverage
$ yarn run test:cov