Skip to content

Instantly share code, notes, and snippets.

@paulobunga
Last active January 28, 2019 12:14
Show Gist options
  • Save paulobunga/3195888266357fdf60ba1babc07e8435 to your computer and use it in GitHub Desktop.
Save paulobunga/3195888266357fdf60ba1babc07e8435 to your computer and use it in GitHub Desktop.
//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