Skip to content

sachinpkale/NodeJsCrudService

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NodeJsCrudService

Simple NodeJS based RESTful service with async/await using ExpressJS and Sequelize.

Instructions to build and run:

  • npm install
  • npm run build
  • node lib/server.js
  • This will start HTTP server on port 3000.

API details:

  1. Create - POST:
    • curl 'http://localhost:3000/' -H 'Content-Type: application/json' --data-binary $'{"name": "Qwer", "age": 30}'
  2. Retrieve - GET:
  3. Udate - PUT:
    • curl 'http://localhost:3000/' -X PUT -H 'Accept: application/json' -H 'Content-Type: application/json' --data-binary $'{"id": 5, "name": "Abc", "age": 60}'
  4. Delete - DELETE:

About

A NodeJs based simple CRUD service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published