Skip to content

klmz/doorbell_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

doorbell

  1. Make sure nodejs en firebase cli are installed.
  2. Go to the .firebaserc file and change the default project id, to your own project id. You can find this in your firebase console.
  3. Run firebase init in the root of this repo.
  4. Accept all the defaults, but make sure to always answer 'no' when it asks you to overwrite existing files.
  5. Answer yes when it asks you to install npm packages.
  6. For the public directory enter 'Client'
  7. Again, don't overwrite existing files.
  8. Update the config object in Client/firebase-messaging-sw.js:10. You can find your config object in the firebase console under settings, general, your apps. You might have to create an webapp to get this config object.
  9. In Client/js/messaging.js:7 you have to change the messaging public key, you can find that under settings -> cloud messaging -> generate web push certificate. (https://firebase.google.com/docs/cloud-messaging/js/client#configure_web_credentials_with_fcm)
  10. Enable google sign in under authentication -> sign-in method, follow the steps to enable google sign in. Or any other authentication provider you want to use.
  11. Run firebase deploy. That should deploy the firebase functions, create a database and the host the webapp.
  12. If you had to create an app in the previous step you can now link that app to your hosting in the save place where the config object could be found.

If you want to deploy changes to a specific part you can also do firebase deploy --only functions and it only deploys functions.

If you want to locally run hosting you can use firebase serve --only hosting.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published