Metro Transit with Google Maps and Vue
# install dependencies
npm install
Create a file src/config/priv.js
containing the following code:
export const priv = {
testURL: 'http://localhost:8080', // URL of app for testing
apiKeys: {
nycmta: 'YOUR-API-KEY',
sfbart: 'YOUR-API-KEY',
gmap: {
dev: 'YOUR-DEV-API-KEY', // Restrict this API key to developer IP addresses
prod: 'YOUR-PROD-API-KEY', // Restrict this API key to production doman
test: 'YOUR-TEST-API-KEY' // Do not restrict this API key for GitHub Actions
}
}
}
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
This repository uses GitHub Actions for CI/CD. Workflows can be found at .github/workflows
. The workflows require two secret variables priv
and privBuild
to be created in the GitHub repository settings. priv
should contain the contents of the private configuration file src/config/priv.js
. privBuild
should also contain src/config/priv.js
but without testURL
, gmap.dev
, and gmap.test
.