Hunted-API
June 18, 2021 ยท View on GitHub
REST api build for the Hunted project using express.
Getting Started
- Clone this repository.
- Run
npm install. - Run
docker-compose up -d --build. - Execute
npx sequelize-cli db:migrate && npx sequelize-cli db:seed:allto create the database table and seed data. - Start programming! :tada:
Manual Heroku Deployment
- Be sure to check that Dockerfile runs npm start instead of npm run watch and that we are only installing NON development node modules.
- Run
heroku container:push web --app="hunted-api"to build the api. - Run
heroku container:release web --app="hunted-api"to release the api. - Execute
npx sequelize-cli db:migrate --url="<DB_CONNECTION_STRING>". - [Optional] Execute
npx sequelize-cli db:seed:all --url="<DB_CONNECTION_STRING>"to seed the database. - Visit https://hunted-api.herokuapp.com/ and check it out live!