Giter Club home page Giter Club logo

express-challenge's Introduction

Express challenge

  1. Fork this repository to your github account and then clone it
  2. Install dependencies with 'npm install'
  3. Start the server with 'npm start'. Check http://localhost:3000

Challenge 1

Add a route to get a bike from its ID (HTTP GET). The service must return the bike as JSON.

Challenge 2

Add a query parameter to the /bikes endpoint to only get bikes from a given country. The service must return an array of bikes as JSON or an empty array if the given country is not found in the list of bikes.

Challenge 3

Add a route to delete a bike from its ID (HTTP DELETE). The service must return a valid HTTP code which means that the resource has been deleted.

Challenge 4

Add a route to create a bike(HTTP PUT). The route must return an HTTP 201 code. Fill the client in client.js which will be used to call the new endpoint and create a new bike.

Challenge 5

The bike price saved in Euro in our 'database' but we want to return the price is US dollars. Update the server code to return prices in dollars without changing the database price.

express-challenge's People

Watchers

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