Skip to content

Example implementation of js(frontend) + firebase(auth) + go/GAE(backend)

License

Notifications You must be signed in to change notification settings

chidakiyo/js-go-gae-firebase-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js-go-gae-firebase-example

Example implementation of js(frontend) + firebase(auth) + go/GAE(backend)

gopher

Pre-setupg

Firebase Setting Checklist

  • 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]
  • Database
    • Create a database
      • URL: https://[Your PROJECT ID].firebaseio.com
  • Storage
    • Create a storage: [such as gs://[Your PROJECT ID].appspot.com]

Configure backend/app.yaml

  • FRONTEND_URL: https://[Your PROJECT ID].appspot.com

Configure frontend/main.js

  • 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]

(Not working) Run Locally

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

Deploy

gcloud config set project [Your Project ID]
make deploy

References

About

Example implementation of js(frontend) + firebase(auth) + go/GAE(backend)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 48.7%
  • Go 27.1%
  • HTML 23.4%
  • Makefile 0.8%