Skip to content

DrewStock/recipe-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

recipe API

This is the data API (back end) for my React Recipe app (front end).

  • recipe API is deployed to Heroku at https://drewstockpdx-recipe-api.herokuapp.com
  • The app creates a web server using Node.js and Express, to serve up data from a MongoDB database
  • Data schemas are modeled using Mongoose
  • Database is hosted by mLab
  • Overview of functionality:
    • GET request to https://drewstockpdx-recipe-api.herokuapp.com/api/recipes - server writes response text (JSON), an array of 'recipe' objects
    • GET request to '/api/recipes/:id' - server writes response text, which is the resource (a 'recipe' object) with that ID
    • POST request to '/api/recipes' - server writes response text and creates a new resource (a new 'recipe' object), whose contents are the parsed body of the request
    • PUT request to '/api/recipes/:id' - server writes response text and creates a new resource (if not already existing) or updates an existing resource. The updated contents of the resource are the parsed body of the request
    • DELETE request to '/api/recipes/:id' - server writes response text and deletes resource
  • Plans for future development:
    • Implement additional CRUD operations:
      • To create a new recipe Completed
      • To update an existing recipe Completed
      • To delete an existing recipe Completed
    • Implement user authentication

About

This is the data API (back end) for my React Recipe app (front end)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors