/taxi-finder-client

๐Ÿš• Taxi Finder Client - A react web client to find taxi

Primary LanguageJavaScript

Taxi Finder Client ๐Ÿš•

This is a technical practice to write a single page web application to find taxi.

About โ„น๏ธ

The task is to create a single page Javascript application using React. The page should feature a map. The map should show markers illustrating the up-to-date locations of on-demand taxis in the area. The page should also feature a UI slider, that enables to change the amount of drivers displayed on the map. The range should be 1-50. In order to find the location of local Taxi's, will need to contact API, and get a list of driver locations. This endpoint will return a list of driver locations, nearby to the location.

Tech Stack ๐Ÿ“š

  • React for Frontend
  • Rebass for UI
  • Leaflet for canvas map
  • Apollo for GraphQL
  • Jest for testing

Note ๐ŸŒž

Due to CORS issue on the API, it is not able to call API directly from browser client app. Therefore, a GraphQL server is developed for calling REST API and act as a medium. In order to start this project, the GraphQL server is required to run first. Below is the git repository for it

https://github.com/m3yevn/taxi-finder-graphql/

How to setup โš™๏ธ

    $ git clone
    $ npm install

How to run normally ๐Ÿƒโ€โ™‚๏ธ

$ npm run start

The project should be running on http://localhost:3000

How to test ๐Ÿงช

$ npm run test

Docker repository ๐Ÿณ

Docker Pulls

How to run on docker

    $ docker pull m3yevn/taxi-finder-client:latest
    $ docker run -d -p 3000:80 --name taxi-finder-client m3yevn/taxi-finder-client:latest

How to build docker image

    $ docker build -t <**image_tag**> .

Screenshot ๐Ÿ“ธ

screenshot