This server was created to accompany the user interface of 'Picky eater', a frontend Mod 3 project at the Turing School of Software and Design. We used the Taste of Home "70 Dinners to Make for Your Picky Eater"here. The data was trimmed down to 50 recipes because a couple recipes were repeats. This server was written in JavaScript using Express and Node.
- Clone down this repo to your local machine:
[email protected]:Fordo29/picky-eater-api.git
- Change into the new directory:
cd picky-eater-api
- Install the dependencies:
npm install
- To fire up the server, run:
node server.js
ornodemon server.js
(if you have nodemon installed)
- In the browser or postman, use the following endpoints with the base URL: http://localhost:3001/ to retrieve data.
- You can also use the following endpoints(besides books, takes you there automatically) on the deployed Heroku API linked above.
Description | URL | Method | Required Properties for Request | Sample Sucessful Response |
---|---|---|---|---|
Get All Recipes | http://localhost:3001/api/v1/foods |
GET | none | array containing all recipe objects |
Get Single Recipe | http://localhost:3001/api/v1/foods/:food_id where food_id will be the id number of single recipe |
GET | none | array containing an object of single recipe info |
- Express
- JavaScript
- Node
- Heroku
- Postman
-
Project Manager: Robbie Jaeger
-
Project Manager: Hannah Hudson