Project description
- https://github.com/teamName/repo
- https://github.com/teamName/repo
- https://github.com/teamName/repo
- https://github.com/teamName/repo
Run the following commands in terminal:
Install all other dependencies:
npm install //To install dependencies
mysql -u student -p < schema.sql // password is student
npm run seed //To seed database
npm run start //To run server on http://localhost:3002/
An nvmrc
file is included if using nvm.
- Node 6.13.0
- etc
From within the root directory:
npm install -g webpack
npm install
Create/POST : /api/carousel/create -> Post a image to yelp
READ/GET : /api/carousel/:resterauntId -> Look up images where resteraunt reference matches resteraunt on the page
Update/PUT : /api/helpful/:resterauntId -> updates number of helpful count of the image by +1 or -1
Update/PUT : /api/notHelpful/:resterauntId -> updates number of not_helpful count of image by +1 or -1
Delete/DELETE : /api delete image from yelp image carousel