English | 繁體中文
- Bootstrap v5.2.3
- Google Maps JavaScript API
- Vue.js v3
- Vue Router
- Vue I18n
- Axios
- Web Browser
- Mark the location of the monitoring station on the map
- Display air quality data from monitoring stations
- Ability to change language (Traditional Chinese, English)
- Identity Verification
- Display the user's settings
- Install Node.js (version 14 or later)
- Move to the project's directory in the command line tool.
- Enable Corepack:
corepack enable
- Prepare and activate the specific version of Yarn:
corepack prepare yarn@3.6.0 --activate
- Install the necessary packages:
yarn install
- Replace the
apiKey
insrc/components/Map.vue
at line 169 with your own Google Maps JavaScript API key. - Enable the Maps JavaScript API and Places API in your Google Cloud project.
To start the front-end web preview mode, use the following command:
yarn dev
To build the application for production, use the following command:
yarn build
This will generate the production-ready files in the dist
directory. You can then serve these files using your preferred web server.
corepack enable
: Enables Corepack, which is a tool for managing package managers like Yarn.corepack prepare yarn@3.6.0 --activate
: Prepares and activates Yarn version 3.6.0.yarn install
: Installs all the dependencies listed in the [package.json
]yarn dev
: Starts the development server for the front-end application.yarn build
: Builds the application for production and outputs the files to thedist
directory.