Skip to content

ValeriyPetryna/product-api

Repository files navigation

Nest Logo

Description

NestJS + PostgreSQL + Docker

Required to have installed bash, Node/npm, Docker, and Docker Compose

Preparing to Installation

$ Clone repository and Rename .env.example to .env

Installation

$ npm install

Build docker images and run containers:

$ docker-compose up --build -d

Run database initialization script after docker containers were started:

$ npm run db:init

or create database in container and run migrations and seeds manually:

$ docker exec -it api sh -c "npm i sequelize-cli ; npx sequelize-cli db:migrate ; npx sequelize-cli db:seed:all"

Links:

Running the app by default:

All endpoints described in Swagger API Documentation:

App link

Test

$ npm run test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors