Skip to content

amirsoofali/sample-restapi-with-nestjs

Repository files navigation

NestJS REST API with MongoDB and RabbitMQ

This is a simple REST API application built with NestJS, using MongoDB for data storage and RabbitMQ for messaging.

Prerequisites

Before you start, ensure you have the following installed:

  • Node.js (v20 or later)
  • Yarn (v1.22 or later)

MongoDB

MongoDB is a NoSQL database used to store our application data.

Installation

  1. Windows:

    Download the MongoDB installer from the official website and follow the installation instructions.

  2. Linux:

    Follow the instructions for your specific Linux distribution on the official website.

Installation

$ yarn install

Running the app

# development
$ yarn run start

# watch mode
$ yarn run start:dev

# production mode
$ yarn run start:prod

Test

# unit tests
$ yarn run test

# e2e tests
$ yarn run test:e2e

# test coverage
$ yarn run test:cov

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors