Skip to content

Latest commit

 

History

History
63 lines (42 loc) · 1.5 KB

README.md

File metadata and controls

63 lines (42 loc) · 1.5 KB

API

API component of projetoumportodostodosporum.org's website.

Dependencies

Install

$ asdf install
$ npm install

Environment Vars

Create a copy from ".env.dev.example" file in the root folder and rename to ".env.dev" and update it accordingly.

Run

Development

$ npm run dev

Preview

Build the preview image of this componenet with $ npm run build:docker:preview and others, then start the Server in preview mode.

Production

Build the production image of this componenet with $ npm run build:docker and others, then start the Server in production mode.

Documentation

Running in development mode access http://api.localhost/doc.

Prisma Studio

Running in development mode: $ npm run prisma:studio

Test

# Unit Tests
$ npm run test:unit

# Integration Tests
$ npm run test:int

# E2E Tests
$ npm run test:e2e

# Test Coverage
$ npm run test:unit:cov
$ npm run test:int:cov
$ npm run test:e2e:cov

Related Repositories