Permalink
Fetching contributors…
Cannot retrieve contributors at this time
45 lines (31 sloc) 1.04 KB
id title sidebar_label
quick-start
Quick Start
Quick Start

Requirements

You need Node.js ^8.10.0 installed and you'll need MongoDB installed and running.

Demo

rest-hapi-demo-alt

The quickest way to get rest-hapi running on your machine is with the rest-hapi-demo project:

(NOTE: For an alternative quick start, check out his awesome yeoman generator for rest-hapi.)

  1. Clone the repo
$ git clone https://github.com/JKHeadley/rest-hapi-demo.git
$ cd rest-hapi-demo
  1. Install the dependencies
$ npm install
  1. Seed the models
$ ./node_modules/.bin/rest-hapi-cli seed
  1. Start the server
$ npm start
  1. View the API docs at

http://localhost:8080/

...have fun!