Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.04 KB

quick-start.md

File metadata and controls

44 lines (31 loc) · 1.04 KB
id title sidebar_label
quick-start
Quick Start
Quick Start

Requirements

You need Node.js >= 14 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!