Skip to content

Small react app that display nearby gas station price.

Notifications You must be signed in to change notification settings

james4388/gas-price

Repository files navigation

Gas-Price

Small react app that display nearby gas station price. Demo https://gasprice.nhutrinh.com/

Requirement

The Gas Price App displays a list of local gas stations and their prices. The application is to be developed in React 16 and meet the following requirements:

Screenshot

Home screen

Station list

Docker development environment

  • API key config: create .env file at the root of project
GASFEED_API=http://devapi.mygasfeed.com
GASFEED_API_KEY=rfej9napna
GOOGLE_GEOCODING_API_KEY=<Your google api key>
  • Build or rebuild docker image when dependencies changed
docker-compose build
  • Run dev environment
docker-compose up

Visit the app at http://localhost:8000

  • Build production
docker-compose -f docker-compose-prod.yml build
  • Test backend
docker-compose run -e TESTING=true backend python -m unittest discover
  • Test frontend
docker-compose run frontend npm run test

About

Small react app that display nearby gas station price.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published