Skip to content

facundocoto/full-stack-kata

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Full Stack Kata

  • This project uses Node v12

Starting the project

  1. Install dependencies
npm install
  1. Start the API
npm run start-be
  1. Start the dev server
npm run start
  1. Running the tests in watch mode
npm run test

API Reference

Some considerations

  • The API may fail anytime
  • The API may take up to 3 seconds to respond

[GET] /api/cars

Returns a list of cars

[
  {
    id: 1,
    make: "Mercedes-Benz",
    model: "E-Class",
    year: 1990,
    color: "#2e904d",
    thumbnail: "http://dummyimage.com/174x138.png/cc0000/ffffff",
    starred: false,
  },
  {...}
  {
    id: 25,
    make: "Suzuki",
    model: "Grand Vitara",
    year: 2005,
    color: "#f16882",
    thumbnail: "http://dummyimage.com/216x187.png/dddddd/000000",
    starred: true,
  },
];

[GET] /api/cars/:carId

Returns a car details

{
  id:123,
  make:"Jeep",
  model:"Compass",
  year:2010,
  color:"#19b4b3",
  thumbnail:"http://dummyimage.com/101x229.png/5fa2dd/ffffff",
  starred: false,
}

[PATCH] /api/cars/:carId

Return the modified car

Body

{
  starred: true | false;
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 78.1%
  • HTML 14.2%
  • CSS 7.7%