Last active
January 28, 2019 12:14
-
-
Save paulobunga/3195888266357fdf60ba1babc07e8435 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Step 1 :: Create working directory | |
mkdir node_rest_api && cd node_rest_api | |
//Step 2 :: Create required directories | |
mkdir models controllers routes common | |
//Step 3 :: Create the files for out app | |
touch app.js common/database.js models/user-model.js controllers/user-controller.js routes/user-routes.js | |
//Step 4 :: Initialise our npm project (with default values) | |
npm init -y | |
//Step 5 :: Install express, mongoose, body-parser jsonwebtoken | |
npm install --save express mongoose body-parser jsonwebtoken |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment