Skip to content

Web API created with NodeJS ( ExpressJS , Mongoose) with MongoDB

Notifications You must be signed in to change notification settings

RaulArmasBenavides/TantooServiceRestNode

Repository files navigation

TantooServiceRestNode

Overview

This is a sample Node.js service using MongoDB as the database, with Mongoose as the ODM.

Prerequisites

  • Node.js (v14.x or later)
  • MongoDB instance (either locally or via a cloud service like MongoDB Atlas)

Setup

  1. Clone the repository:

    git clone https://github.com/RaulArmasBenavides/TantooServiceRestNode
  2. Navigate to the project directory:

    cd TantooServiceRestNode
  3. Install dependencies:

    npm install
  4. Set up your environment variables: Create a .env file in the root of the project and provide the following variables: For dev

    DB_CNN2=<your MongoDB connection string>
    

    Example MongoDB connection string:

    DB_CNN2=mongodb+srv://<username>:<password>@cluster0.ie9pfbp.mongodb.net/<dbname>?retryWrites=true&w=majority
    
  5. Start the service:

    npm start

Development

  • Nodemon is used for development purposes. It automatically restarts the server when file changes in the directory are detected.
    npm start

License

This project is licensed under the ISC License.

About

Web API created with NodeJS ( ExpressJS , Mongoose) with MongoDB

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published