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.
- front-end
- back-end
- Pre-requisites
- Steps Necessary to install and run the code
- Optional Info
Comprises of the Front end UI package
Comprises of the Back end mock API for the application.
- Make sure node js is installed in your system.
-
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
-
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
-
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.