Example implementation of js(frontend) + firebase(auth) + go/GAE(backend)
- Authentication
- Sign-in method
- Enable Providers: Google, Facebook, Twitter, GitHub etc
- Authorised domains
- Add domain: [Your GAE domain such as [Your PROJECT ID].appspot.com]
- Sign-in method
- Database
- Create a database
- URL: https://[Your PROJECT ID].firebaseio.com
- Create a database
- Storage
- Create a storage: [such as gs://[Your PROJECT ID].appspot.com]
- FRONTEND_URL: https://[Your PROJECT ID].appspot.com
- backendHostUrl: https://backend-dot-[Your PROJECT ID].appspot.com
- apiKey: Firebase -> [Settings] -> [General] -> [Web API key]
- authDomain: [Your PROJECT ID].firebaseapp.com
- databaseURL: https://[Your PROJECT ID].firebaseio.com
- projectId: [Your PROJECT ID]
- storageBucket: gs://[Your PROJECT ID].appspot.com
- messagingSenderId: Firebase -> [Settings] -> [Cloud Messaging] -> [Sender ID]
Caution: Not working ritht now becuse dev_appserver.py
does not support go1.12+ versions.
dev_appserver.py frontend/app.yaml backend/app.yaml
According to the below doc, you can just use go run
...
see: Testing and Deploying your Application
gcloud config set project [Your Project ID]
make deploy