Code Monkey home page Code Monkey logo

posts_nestjs_postgres's Introduction

NodeJS NestJS Sequelize Postgres Swagger TypeScript JWT Docker NPM Postman Git


Description ๐Ÿ“„

The project allows you to add custom posts. The project and database can be run in a docker container. Implemented authorization, user roles, role protectors, error interceptors, swagger documentation, file uploads.


Installation โ˜•

$ npm install
$ yarn install

Setup environment ๐Ÿ”ง

# development mode
1. Create inside root dir file .development.env
2. Copy content from .development.env.dist to .development.env
3. correct inside the .development.env file the data to the required

# production mode
1. Create inside root dir file .production.env
2. Copy content from .production.env.dist to .production.env
3. correct inside the .production.env file the data to the required

# debug mode
1. Create inside root dir file .debug.env
2. Copy content from .development.env.dist to .debug.env
3. correct inside the .debug.env file the data to the required

Running the app ๐Ÿš€

# development mode
$ npm run start:dev
$ yarn start:dev

# production mode
$ npm run start:prod
$ yarn start:prod

# debug mode
$ npm run start:debug
$ yarn start:debug

Test ๐Ÿ›

# unit tests
$ npm run test
$ yarn test

# e2e tests
$ npm run test:e2e
$ yarn test:e2e

# test coverage
$ npm run test:cov
$ yarn test:cov

Start in docker ๐Ÿณ

  • change in .env file row from POSTGRES_HOST=localhost to POSTGRES_HOST=postgres
  • for build docker image run the command docker-compose build
  • for start docker image run the docker-compose up
  • for stop docker image run the docker-compose down

Swagger documentations ๐Ÿ“š

http://localhost:5001/api/docs


posts_nestjs_postgres's People

Contributors

tarasmakarchuk avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.