Skip to content

sumodhnair19/Google-directions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google-directions

The project comprises of a google route finder. It finds the route between the two locations using google map API and returns the distance and time required.

Table of contents :

  • front-end
  • back-end
  • Pre-requisites
  • Steps Necessary to install and run the code
  • Optional Info

front-end

Comprises of the Front end UI package

back-end

Comprises of the Back end mock API for the application.

Pre-requisites :

  1. Make sure node js is installed in your system.

Steps Necessary to install and run the code :-

  1. Go to the path of the folder "back-end" from CLI

    a) Now, type "npm install" to install the necessary components needed to run back-end server

    b) Now, type "npm start" to start the mock server at port 3001

  2. Go to the path of folder "front-end" from CLI

    a) Now, type "npm install" to install the necessary components needed to run front-end components

    b) Now, type "npm start" to start the front end application. The application will by default run at port 3000

Optional Info:-

  1. Google Maps require an API key to work, and currently I am using my own API key. If in case you want to change it and use yours, then please change it by doing the following:

    Go to file -> front-end->src->sharedComponent->config->constants.js

    Look for googleAPIKey and update.