Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Firebase DB #3

Open
hannojg opened this issue Dec 16, 2019 · 3 comments
Open

Create Firebase DB #3

hannojg opened this issue Dec 16, 2019 · 3 comments

Comments

@hannojg
Copy link

hannojg commented Dec 16, 2019

Hey,

never worked with firebase in-depth: isn't there a need to create a database in firebase in order to get this project working? What are the required settings here?

Thank you in advance

@tuanngominh
Copy link
Owner

tuanngominh commented May 30, 2020

The project uses realtime db as you can see here

const ref = firebase.database().ref('timeEntries/' + uid)

so yes, you need to create a firebase project by following firebase guide: https://firebase.google.com/docs/database/web/start, then update the setting here

const config = {
apiKey: "AIzaSyButWBDUS6KDb2ohPzBM7ZfVeaFlwUvx6s",
authDomain: "vivid-trace.firebaseapp.com",
databaseURL: "https://vivid-trace.firebaseio.com",
storageBucket: "vivid-trace.appspot.com",
messagingSenderId: "1046612858521"

@pinci996
Copy link

So all I need to do is make firebase project, update configureFirebase settings and that's it? How can I run my web app locally after that?

@tuanngominh
Copy link
Owner

@pinci996 Take a look at package.json file then you will find down that you should run npm start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants