Skip to content

wisdom-dosoo/Node-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node-API

This project is a Node.js API backend designed for learning purposes. It uses Express.js for the server framework and MongoDB for the database. The junior developer is learning how to build backend APIs with these technologies.

Features

  • Node.js runtime environment
  • Express.js for building RESTful APIs
  • MongoDB as the database, connected via Mongoose ODM
  • Babel for using modern JavaScript (ES6+) features with backward compatibility
  • Nodemon for automatic server restarts during development

Installation

To install the necessary packages, run:

npm install

This will install the following key dependencies:

  • express
  • mongoose
  • body-parser
  • nodemon (for development)
  • @babel/core, @babel/cli, @babel/node, @babel/preset-env (for ES6+ support)

Running the API

Start the development server with:

npm start

This runs the server using nodemon and babel-node for live reload and ES6+ support.

The API will be available at http://localhost:3000.

MongoDB Setup

Make sure MongoDB is installed and running locally. The API connects to the database at:

mongodb://localhost:27017/CRMdb

Notes

  • Deprecated MongoDB connection options useNewUrlParser and useUnifiedTopology have been removed to avoid warnings.
  • The project uses ES6 module syntax, enabled by Babel.

Learning Goals

  • Understand how to set up a Node.js backend with Express.js.
  • Learn how to connect and interact with MongoDB using Mongoose.
  • Use Babel to write modern JavaScript that runs in Node.js.
  • Manage development workflow with Nodemon.

About

A Node.js API backend designed for learning purposes. It uses Express.js for the server framework and MongoDB for the database.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors