Skip to content

sombreroEnPuntas/car-gallery

Repository files navigation

car-gallery

Try it out on Heroku!

Build Status codecov Maintainability

Simple web app that allows a user to select their car from a directory of registered cars.

NOTE: Requirements here

On this page

  1. Service
  2. Scripts
  3. CI
  4. Web app

Service

There's an API service running on a Heroku app to provide data.
It is a dockerized node app, which is available at sombreroenpuntas/car-list-service.
Source code is included also in Dockerfile.

Scripts

The provided web app is built with Next.js.

The following scripts are available:

yarn test   // run unit & integration tests with jest
yarn lint   // run flow, eslint & prettier code checks
yarn dev    // starts dev server locally, with hot reload
yarn build  // generate PRD bundle
yarn start  // starts PRD server

CI

  • husky enforces linting when committing code (runs locally)
  • Travis CI will pick every push and run test suites, and will trigger a Heroku deploy for master branch.
  • codecov keeps an eye on the test coverage, and codeclimate prevents accumulating technical debt

Web app

There's a web app deployed as a Heroku app, matching latest master.