Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 719 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 719 Bytes

hapi.js REST API

A sample structure for building a REST API on top of hapi.js framework that consumes a Json File like a database.

$ git clone [email protected]:agendor/sample-hapi-rest-api.git
$ cd sample-hapi-rest-api
$ npm install

To start de api server in development mode

$ npm run dev

That's it! You should be able to play around your API GETting, POSTing, PUTing AND DELETEing Tasks. The end-points are as described in the /routes/*.js file: