Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bilalakil/brunch-map
Create your map of brunch (or other) spots, by creating pins with names and optionally photos.
https://github.com/bilalakil/brunch-map
firebase github-actions google-cloud-functions vue webpack
Last synced: 5 days ago
JSON representation
Create your map of brunch (or other) spots, by creating pins with names and optionally photos.
- Host: GitHub
- URL: https://github.com/bilalakil/brunch-map
- Owner: bilalakil
- Created: 2017-05-07T11:30:21.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2023-01-10T04:59:56.000Z (about 2 years ago)
- Last Synced: 2024-04-14T10:52:03.759Z (10 months ago)
- Topics: firebase, github-actions, google-cloud-functions, vue, webpack
- Language: Vue
- Homepage: https://brunch-map-prod.web.app
- Size: 398 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Brunch Map
==========The following Google APIs are utilised by this project and need to be enabled for it to work (not including the APIs that the Firebase CLI will handle automatically):
- Maps JavaScript API
- Maps Geocoding API
- Manually enable Firebase Storage
- Manually enable login services## Root: Firebase Deployment
# Install dependencies
npm i# Select project
npx firebase use staging# Deploy everything (Frontend would need to be built first)
npx firebase deploy## `/app`: Frontend
- `$GOOGLE_MAPS_API_KEY`
__Requires the above environment variables to be set.__
cd app
# Install dependencies
npm i# Build app
npx webpack --env branch=staging# Watch for changes
npx webpack --watch --env branch=staging# Firebase actions back in root..
cd ..# Run local server
npx firebase serve# Deploy
npx firebase deploy --only hosting## `/database.rules.json`: Database Rules
# Deploy
npx firebase deploy --only database## `/storage.rules`: Storage Rules
# Deploy
npx firebase deploy --only storage## `/functions`: Cloud Functions
- `googlemaps.key`
__Requires the above config variables to be set, i.e. via
`npx firebase functions:config:set googlemaps.key=...`.__cd functions
# Install dependencies
npm i# Firebase actions back in root..
cd ..# Running functions locally has not been successfully tested yet ;(
# Deploy
npx firebase deploy --only functions## Continuous Integration via GitHub Actions
# View config
less .github/workflows/{main,staging}-build-deploy.yml# Code, commit, push, debug, repeat
# main and staging branches supported