Skip to content

maulikdesai21/notesbackend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Express & ES6 REST API Notes Back-end

Getting Started

# clone it
git 
cd 

# Install dependencies
npm install

# Start development live-reload server
npm run dev

# Start production server:
 npm start

Notes

The code is trying to connect to a cloud mongodb provider: https://mlab.com/

If you are behind a corporate firewall it would fail to connect. Please change mongo URL in src/config.json

if you change the DB please run the script below to create test users

curl -X POST \
  http://localhost:8081/createUser \
  -H 'Cache-Control: no-cache' \
  -H 'Content-Type: application/json' \
  -H 'Postman-Token: c5669148-5b34-4723-ad98-3ca596e89ba8' \
  -d '{
	"name":"Jhon",
	"email":"Jhon@njit.edu",
	"password":"12345"
}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published