Coder Social home page Coder Social logo

nest-dockerized's Introduction

Description

Project is scaffolded with below tools

Tools
Framework Nest JS
Database Postgres
Containeraization Docker
Database ORM TypeORM
Documentation Swagger

Live demo

Link
Documentation Access documentation
Application Server Access

Note: When invoking API make sure to authorize with JWT token mentioned in the Swagger doc and fill all the required fields mentioned.

Deploying Project locally with Docker

Prequisite: Docker should be installed on your machine to execute below commands. Get docker

Build the NestJS project

docker compose build

Starting application server as daemon

docker compose up -d

Project starts on http://localhost:3000

Testing the app

# e2e tests for testing API services
npm run test:e2e

Test results

Running the app locally for development

# development with watch mode
$ npm run start:dev

Generating DB scripts

It is possible to generate migration scripts based on the entities created or modified.

npm run migration:generate

The above command creates migration scripts automatically

Modify database configs

Database is scaffolded with Postgres image pulled from docker hub, credentials can be updated in docker-compose.yml.

Side note

.env published as part of repo does not contains any production secrets or configs. Credentials stored inside .env is for running application without hassles.

License

Nest is MIT licensed.

nest-dockerized's People

Contributors

rajeevbbqq avatar

Watchers

 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.