Skip to content

Latest commit

 

History

History
53 lines (44 loc) · 1.47 KB

README.md

File metadata and controls

53 lines (44 loc) · 1.47 KB

Time-To-Go-Out

JavaScript Style Guide

This application is used to help you find a place to go when you have no idea where to go.

Code Architecture

  • src
    • actions: for redux action
    • reducers: for redux reducer
    • saga: for redux-saga
    • store: for redux store
    • api
      • fetch.js: fetcher class
    • components: all the components is in here
    • constant: store constant variables
      • actionType.js: for actions
      • cityName.js: city's english name and chineses name
      • envValue.js: for environment variables
      • routes.js: store the routing urls
    • utils
      • hooks: custom react hooks
      • theme.js: for material ui
      • vh.js: fix mobile vh problem
    • index.js

Development

Environment variables

REACT_APP_APP_ID = your MOTC Transport API App ID
REACT_APP_APP_KEY = your MOTC Transport API App Key
REACT_APP_DOMAIN = MOTC Transport API's Domain

Run on local

git clone ...
cd ...
yarn install
yarn start

Future Feature

  • Show spots which near you
  • Add Restaurants Datas
  • Add random pick function