This server was written in JavaScript using Express and Node with intent for accompaniment to its UI counterpart "Food For Thought". It consists of a hand-rolled array of recipe objects that contain a name, image, ingredients, and instructions.
- Clone down this repo to your local machine:
[email protected]:lschnell8/Mediterranean-Recipes-API.git
- Change directory:
cd Mediterranean-Recipes-API
- Install the dependencies:
npm install
- Starting the server, run command:
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 request data.
Description | URL | Method | Required Properties for Request | Sample Sucessful Response |
---|---|---|---|---|
Get All Recipes | http://localhost:3001/api/v1/recipes |
GET | none | array of recipe objects |
- Express
- JavaScript
- Node
- Postman
- Fly.io