- Create the
.env
by using.env.example
as a reference:cp .env.example .env
- Update the .env file with your correct local information
- DB_HOST=" YOUR POSTGRES HOST "
- DB_USER=" YOUR POSTGRES USER "
- DB_PASS=" YOUR POSTGRES PASSWORD"
- DB_NAME=" YOUR DATABASE NAME "
- DB_SSL=true
- DB_PORT= YOUR PORT
- userkey=" YOUR ZOMATO API KEY "
- Install dependencies:
npm install
- 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
- Visit
http://localhost:8080/