GithubHelp home page GithubHelp logo

broken-api's Introduction

Set Up

  1. Import the "beer-favs.postman_collection" file into your Postman app
  2. Install Nodemon globaly by running
npm install -g nodemon
  1. Inside the project folder run
npm install
  1. Start your server by running
nodemon app.js

This will keep our server reloading automatically whenever you update something in the .js files.

Fix the broken API

Unfortunately our API to get our favorite beers is currenlty broken

Look over the app.js file to try to fix the API.

Start fixing the API in the following order:

  1. Get All Beers (GET Request)
  2. Get One Beer by ID (GET Request)
  3. Add One Beer (POST Request)
  4. Update One Beer by ID (PUT Request)
  5. Delete One Beer by ID (DELETE Request)

GOOGLE IS YOUR FRIEND ;)

Use the documentation for Express, Mongoose & MongoDB

Test the API

Run the different API calls by clicking the "Send" button in Postman, till you get the proper responses.

Somtimes your node server will crash! Make sure it is running properly, by checking the terminal. The command

rs

will reload it manually.

fixedapi

broken-api's People

Contributors

georgiekirschner avatar jillmartin avatar

Watchers

 avatar  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.