Skip to content

oobii/node-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cd node-rest-api
npm init -y
npm install express
npm install @babel/core @babel/preset-env @babel/node
npm install body-parser
npm install nodemon
npm install eslint

// if we want to avoid mutation in const objects
// we can install 
// npm install eslint-plugin-immutable
// add "plugin" section and add to the "rules" section

// initializing ESLINT for out project
npx eslint --init

// run periodically to check for style warrnings
npx eslint .

git init

// add .gitignore with content 
//"node_modules"

// add .babelrc with this content
//{
//   "presets": ["@babel/preset-env"]
//}

// to run the server
npx babel-node src/server.js
     or
 npm start    

// open in the browser 
http://localhost:3000/hello

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published