Skip to content

cristiano-pacheco/hapi-start

Repository files navigation

Hapi / MongoDB Starter Kit for Restful API's Development

This package provides a basic skeleton for an API development in Nodejs platform with Hapi framework and MongoDB.

Features

  • Crud of users
  • Authentication with JWT
  • Swagger documentation

Prerequisites

Make sure you have installed Node 8.9+, Npm 5.4+ and MongoDB.

Installation

Cloning

These commands will download the repository and prepare it for you.

git clone --depth 1 -b master [email protected]:cristianopacheco/hapi-start.git
cd hapi-start
rm -rf ./.git/
git init
git add --all
git commit -m "init"

Setup

 $ npm i && npm start

Usage

Commands

To run tests:

$ npm run test

To run the linter:

$ npm run lint

To run and fix the code with linter:

$ npm run lint:fix

Things worth mentioning

  • The Standard style guide was used in this project
  • Jest was used for unit and acceptance tests

License

Licensed under the MIT license.

Releases

No releases published

Packages

No packages published