m3yevn / taxi-finder-graphql

๐Ÿš• Taxi Finder GraphQL - A nodejs apollo graphQL server to find Taxi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Taxi Finder GraphQL ๐Ÿ”ฎ

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.

About โ„น๏ธ

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.

Tech Stack ๐Ÿ“š

  • NodeJS
  • Apollo GraphQL server
  • Apollo REST Datasource
  • GraphQL Playground for schema docs
  • Jest for testing

Note ๐ŸŒž

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/

How to setup โš™๏ธ

    $ git clone
    $ npm install

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

$ npm run start

How to run and watch changes with Nodemon ๐Ÿ‘€

$ npm run start:watch

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

How to test ๐Ÿงช

$ npm run test

Docker repository ๐Ÿณ

Docker Pulls

How to run on docker

    $ docker pull m3yevn/taxi-finder-graphql:latest
    $ docker run -d -p 5000:5000 --name taxi-finder-gql m3yevn/taxi-finder-graphql:latest

How to build docker image

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

Screenshot

screenshot

About

๐Ÿš• Taxi Finder GraphQL - A nodejs apollo graphQL server to find Taxi


Languages

Language:TypeScript 89.9%Language:Dockerfile 10.1%