Skip to content

A simple demonstration of the rest-hapi plugin and @admin-bro/hapi plugin.

License

Notifications You must be signed in to change notification settings

marquelzikri/rest-hapi-admin-bro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rest-hapi-demo

A template to auto generate RESTful API and admin dashboard using rest-hapi and adminBro Hapi plugin.

Requirements

You need Node.js version >= 12 installed and you'll need MongoDB installed and running.

Installation

clone the repo

$ git clone https://github.com/marquelzikri/rest-hapi-admin-bro
$ cd rest-hapi-admin-bro

install the dependencies

$ npm install

copy env file

$ cp .env.example .env

seed the models

  • Local db
$ ./node_modules/.bin/rest-hapi-cli seed
  • External db
$ ./node_modules/.bin/rest-hapi-cli seed <your mongoDB url>

Using the app

start the api

$ npm start

view the api docs at

http://localhost:8080/

view the admin dashboard at

http://localhost:8080/admin

About

A simple demonstration of the rest-hapi plugin and @admin-bro/hapi plugin.

Resources

License

Stars

Watchers

Forks