simple-node-api

MIT License

Stars
1

simple-node-api

Running

npm start

Development

Install dependĂȘncies:

npm install

Run with nodemon:

npm run watch

Tests

  • GET: curl localhost:4000
  • GET with querystrings: curl localhost:4000?name=robinson
  • POST: curl localhost:4000/post -d '{"name":"robinson"}'
  • 404: curl localhost:4000/xxx

Next steps

  • GET
  • POST
  • PUT
  • DELETE
  • UPDATE
  • Invalid Requests
  • Memory Database (to sample of data modification)
  • Routing
  • Send templates