Documentation on working with the Surprise My Palate server backend!
npm i
mkdir db
npm run populate
"DB_FILEPATH='./db/food-db.json'" > .env
- Add the proper Yelp API Key as
YELP_API_KEY
to the .env.
npm start
- Start the servernpm run populate
- Populate a default db
curl -d '{"diet":[], "meal-history":[]}' -H "Content-Type: application/json" -X POST http://localhost:4000/foods