This is a technical practice to write an Apollo GraphQL server to find taxi which get driver data from REST API and serve them on query.
This project is to support Taxi Finder Client. The task is to create a graphQL server so that single page Javascript application using React can query from browser. In order to find the location of local Taxi's, the server 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 and serve them at graphQL query.
- NodeJS
- Apollo GraphQL server
- Apollo REST Datasource
- GraphQL Playground for schema docs
- Jest for testing
Due to CORS issue on the API, it is not able to call API directly from browser client app. Therefore, this GraphQL server is developed for calling REST API and act as a medium. Below is the git repository for the client app.
https://github.com/m3yevn/taxi-finder-client/
$ git clone
$ npm install
$ npm run start
$ npm run start:watch
The project should be running on http://localhost:5000
$ npm run test
- This project image is available at
- https://hub.docker.com/repository/docker/m3yevn/taxi-finder-graphql
$ docker pull m3yevn/taxi-finder-graphql:latest
$ docker run -d -p 5000:5000 --name taxi-finder-gql m3yevn/taxi-finder-graphql:latest
$ docker build -t <**image_tag**> .