An opinionated boilerplate for NodeJS Hapi framework for a REST API
npm install|i
to install packagesnpm run dev|prod
for envrionments- Navigate to
http://localhost:8080
to consume the API - Edit both
knexfile.js
&api/knex.js
with database information.
- Test routes are on
/
and/hello/{param}
- The boilerplate uses Knex to structure SQL queries
- The file structure is fairly simple
api
[route object (e.g users, payments]
[directory name]_routes.js
e.gusers_routes.js
- Add Auth logic into boilerplate using passport.js