This project was created as a back-end api for the critter sitter app using Node/Express, postgreSQL for the database with postGIS for spacial querying.
Fork and clone this repository
- Create the
.env
by using.env.example
as a reference:cp .env.example .env
- Update the .env file with your correct local information
- Install dependencies:
npm i
- Run migrations:
npm run knex migrate:latest
- Check the migrations folder to see what gets created in the DB
- Run the seed:
npm run knex seed:run
- Check the seeds file to see what gets seeded in the DB
- Run the server:
npm run local
- You will need this server running to work as an api for the critter sitter app.
- Node 5.10.x or above
- NPM 3.8.x or above
heroku run knex migrate:latest
runs migration on the heroku database in the cloud.
heroku run knex seed:run
puts seed data in heroku database.
git push heroku master
to push to heroku.