A simple node boilerplate using express.js, mongodb with the help of mongoose, http-server, JWT (for authentication) and etc.
Before getting started with the project please follow the below steps.
Before going to install and run the project, there are some things need to know. If you already knew, please go to next step.
Note : This is for very beginner. If you already knew node, please ignore this.
-
npm - Node package manager
-
node - If you don't have node installed, you can donwload here
-
express.js - Express.js
Step 1 : Clone the directory withe the command
git clone https://github.com/ahari884/simple-node-boilerplate.git
and cd to simple-node-boilerplate
cd simple-node-boilerplate
Step 2 : install node modules needed
npm install
Note : Wait for few minutes to install the node modules, may few hours if your internet connection is slow π
Just run
node index.js
It will show the message that
App running at http://localhost:3000/
Open browser and enter url : http://localhost:3000/ and then you should see :
{
"messsage": "Server running at http://localhost:3000",
"status": "up",
"success": true
}
Ooops done with the runnig app
Let's go rock the node world π π π