Skip to content

AbdurRaahimm/node-mongodb-connect-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node MongoDB Connect Starter

Description

This is a starter project for connecting Node.js applications with MongoDB. It provides a basic template with all the necessary dependencies and configuration files to quickly set up a connection and interact with a MongoDB database.

Features

  1. MongoDB is a free and open -source cross-platform document database that stores JSON-like documents with schema.

2.This starter kit provides the basic structure for building an application using: - ExpressJS as web framework; - Mongoose ODM (Object Data Modeling) library to work with MongoDB databases, which allows you to create models of your data in JavaScript code without having any knowledge about how Mongo works internally; - Passport authentication middleware package to handle user registration/login

Installation

  1. Clone this repository
git clone https://github.com/AbdurRaahimm/node-mongodb-connect-starter.git
  1. Navigate to the project directory
cd node-mongodb-connect-starter
  1. Run The Essential Dependency
npm install

Configuration

  1. Create a .env file in the project root directory.
  2. Add the following environment variables to the .env file:
    • DB_URI: The URI of your MongoDB connection.
    • PORT: (Optional) The port number where the server will run. Default is set to 5000.

Usage

  1. Start the server: npm start

Connect on Social Media

About

Node MongoDB Starter template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published