This is a Node.js app that uses Express framework with MongoDB (Mongoose) to create a API REST for a blog that contents users and posts.
Before you begin check about the basic building blocks that assemble this application:
- MongoDB - Go through MongoDB Official Website and proceed to their Official Manual, which should help you understand NoSQL and MongoDB better.
- Node.js - Start by going through Node.js Official Website.
- Express - The best way to understand express is through its Official Website, which has a Getting Started guide, as well as an ExpressJS guide for general express topics.
Make sure you have installed all of the following prerequisites on your development machine:
- Git - Download & Install Git. OSX and Linux machines typically have this already installed.
- Node.js - Download & Install Node.js and the npm package manager.
To install the dependencies for the server, run this in the application folder from the command-line:
npm install
Obs.: You need to install MongoDB to use the application.
Run your application using npm:
npm start
Your application runs on port 3100.