Git Product home page Git Product logo

json-api-project's Introduction

Backend JSON API PROJECT


Deployed Url

https://bombrecipeapi.herokuapp.com/

Description


API was created using the frameworks Node.js and express, and the database Mongodb in conjuction with the library mongoose. Testing was done with the application postman. This api provides information for recipes including title, summary, time to cook, servings, images, cuisine genre, ingredients, instructions, and whether or not the dish if vegetarian, vegan, or dairy free.

Development Process

Date Progress Working On
11/3/2020 API connection attempting to be established so that information can be seeded into mongodb database. API connection giving some issues
11/4/2020 API connection established and working. Filtered through a model and seeded into a local mongo database. Routes established through CRUD functinality. Working on readme.
11/5/2020 Stylized Readme.md and deployed API via heroku NA

API Accessibility


  • Users of this API can access a multitude of different recipes. They can be accessed in bulk or through searching by type of cuisine.
  • User can also create more recipes, update existing ones, or delete through established routes.

Model

recipeShema = {
    title = String,
    summary = String,
    readyInMinutes = Number,
    servings = Number,
    image = String,
    cuisines = [],
    vegetarian = Boolean,
    vegan = Boolean,
    dairyFree = Boolean,
    ingredients = [],
    instructions =[],
}

Routes


Method Path Description
Get / Gets all recipes in the user database
Get /:name Place the style of cuisine you would like to retreive and they will populate below
Get /searchByTitle/:name Place the title of the recipe you are looking for in the name portion of this url (spaces included)
Post /new This can create a new recipe via postman
Put /recipe/:name Place the name of the recipe behind the recipe backslash to find a recipe and edit it
Delete /remove/:name Place the name behind the remove backslach to find the recipe by name and remove that recipe

Tools used: Postman Postman was used to test out CRUD functionality to manipulate the db.

Installation Instructions After cloning this repository run npm install to install all dependencies included in the package.json file. Users will also need to have mongodb established on their computer.

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.