GithubHelp home page GithubHelp logo

haha-shop's Introduction

Netlify Status

Introduction

This Vue.js web application allows user to submit one pickup and drop-off point. It display the waypoints returned from the backend(API call).​

The App is live here

enter image description here

App progress

  1. User submit one pickup and drop-off point. Address fields are come with autocomplete options.
  2. POST method with address content to the Mock API by axios. It purposed to collect token.
  3. Make API call byGET method with token from last step. Various status response as below:
  • in progress: It represent server side still in progress. Then it process retry instantly max to 5 times. Variable retryCounter are editable in MyMap.vue. Collecting route in progress... message will inform user by green text.
  • failure: Print Location not accessible by car message to user by red text.
  • success: Print total distance and total distance to screen. Also render marker and route in map.

Prequisite

  • Install nodeJS

Installation

# install dependencies
npm install

App configuration

Get Google Maps API KEY

  1. Generating an Google Maps API key
  2. Enable Maps JavaScript API
  3. Enable Places API (for autocomplete feature)

Update config/prod.env.js

Replace YOUR-GOOGLE-API-KEY and YOUR-MOCK-API-DOMAIN ㊙️ with your own key

㊙️ Hints: https://mock-api.dev.XXX.com

App in development mode

# serve with hot reload at localhost:8080 with ESLint errors and warnings
npm run dev

Run Tests

Unit test files path

# run unit tests
npm run unit

# run e2e tests
npm run e2e

# run all tests
npm test

Create production build

# Build for production with minification to
# Out put dir: dist/
npm run build

See Vue.js official deployment guidelines for more information.

TODO

Validator for empty address

For now it conflits with autocomplete feature. For example when the value is out of autocomplete options list(e.g. abc888). Then input value keep as empty(not abc888). Which do not consistant with front-end value(abc888).

haha-shop's People

Contributors

bunnywong avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.