Setting up the hapi framework is as easy as making a server on the index.js file in the root folder per instructions from hapi.dev.
Connecting the Sequelize ORM was a bit trickier and Dustin and I followed a combination of tutorials to get it up and running.
Currently, the organization of this api is delicate because I don't know exactly how to refactor things. Configuring for deployment will probably require refactoring.
This first iteration sets up a database with a locations table and 2 endpoints: get /api/v1/locations and post /api/v1/locations
Setting up the hapi framework is as easy as making a server on the
index.js
file in the root folder per instructions from hapi.dev.Connecting the Sequelize ORM was a bit trickier and Dustin and I followed a combination of tutorials to get it up and running.
Currently, the organization of this api is delicate because I don't know exactly how to refactor things. Configuring for deployment will probably require refactoring.
This first iteration sets up a database with a locations table and 2 endpoints:
get /api/v1/locations
andpost /api/v1/locations
Dependencies:
Not yet tested