This server was created to accompany the user interface of 'DLCA Cookbook Application', a personal project to support individuals navigate through healthy recipes. This server was written in JavaScript using Express and Node.
- Clone down this repo to your local machine:
git@github.com:Fordo29/healthy-recipe-api.git
- Change into the new directory:
cd healthy-recipe-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