A barebones API built using Hapi.
Make sure you have Node.js and the Heroku Toolbelt installed.
$ git clone git@github.com:chico/node-js-getting-started-api.git # or clone your own fork
$ cd node-js-getting-started-api
$ npm install
$ npm start
Your app should now be running on localhost:8080.
The Swagger UI is outside the scope of this project but can easily be added:
- See https://github.com/glennjones/hapi-swagger#viewing-the-documentation-page
- See https://github.com/jensoleg/swagger-ui
$ heroku create
$ git push heroku master
$ heroku open
For more information about using Node.js on Heroku, see these Dev Center articles: