Skip to content

Instantly share code, notes, and snippets.

@avermeulen
Last active November 6, 2018 13:18
Show Gist options
  • Save avermeulen/a647b367abb8e7fa9e46dd2465f52852 to your computer and use it in GitHub Desktop.
Save avermeulen/a647b367abb8e7fa9e46dd2465f52852 to your computer and use it in GitHub Desktop.

Create car badges using an API

Create some badges using the https://github.com/avermeulen/api-tutor API

Use:

Badge ideas

  • A badge that displays how many cars there are of a given color.

  • A badge that displays how many of a given brand car is available.

  • A badge that displays how many cars are available cheaper than a specific price.

  • List all the cars and show the logo of their brand next to them.

Widget ideas

  • Show all cars for a given brand add brand filter support. Show a counter of how many cars for that brand is available.
  • Show all cars for a given color add color filter support. Show a counter of how many cars for that color is available.
  • Combine color and brand allow users to filter on brand and/or color. Show a counter of how many cars for that color is available.

For the widgets: add an option to show all the data matching the filter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment