A simple routing app for pickup point and drop-off point.
- Node.js - JavaScript runtime environment for compile and run
- Vue.js - JavaScript framework
- Vue CLI - Standard Tooling for Vue.js Development
- Vuetify.js - Vue.js Material Design Component Framework
- Google Maps API - Google mapping service
To use the mapping service, you are reuqired to get the Google Maps API key from Google. Here is the steps:
- Access Google Maps Platform, click "Get started"
- Login to your Google account
- Type in a project name, follow the guide in "Enable Google Maps Platform"
- Fill in billing information, you will get USD200 free usage every month. Check the details in Pricing & Plans of Google Maps Platform
- You will get the API key in Google Maps Platform. Keep the API key to be used in Installation
- In Google Maps Platform, enable Directions API, Maps JavaScript API and Places API
This project requires Node.js version 8.9 or above. You can download and install the latest version through the official website.
To install Vue CLI, execute following command:
$ npm install -g @vue/cli
You are not required to install Vue.js and Vuetify.js separately; instead, execute following commands to install dependencies and devDependencies packages for the project:
$ cd routing
$ npm install
To use the Google Maps API key in the project, open your text editor and write in the first line:
VUE_APP_GOOGLE_MAP_TOKEN=<your Google Maps API key>
Save the file as .env.local under the project root directory. The file will be ignored by git.
There are several commends to start the project:
With hot-reloads, you can see the change in real time without re-compile.
$ npm run serve
After production built, you can deploy the files inside folder /dist to your production server.
$ npm run build
Unit tests are set for major functions.
$ npm run test:unit
The lints rule is set to vue/recommended.
$ npm run lint