Giter Club home page Giter Club logo

picky-eater-api's Introduction

Picky Eater API

  • Deployed API on Heroku here
  • Frontend Repo here
  • Project Spec here

Background

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.

Installation Instructions

  1. Clone down this repo to your local machine:
  2. Change into the new directory:
    • cd picky-eater-api
  3. Install the dependencies:
    • npm install
  4. To fire up the server, run:
    • node server.js or nodemon server.js(if you have nodemon installed)
  5. In the browser or postman, use the following endpoints with the base URL: http://localhost:3001/ to retrieve data.
  6. You can also use the following endpoints(besides books, takes you there automatically) on the deployed Heroku API linked above.

Endpoints

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

Technologies Used

  • Express
  • JavaScript
  • Node
  • Heroku
  • Postman

Authors

picky-eater-api's People

Contributors

fordo29 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.