How to Use Google Firebase to make a database for your website

Google firebase is a database service that you can use it for you website's database or login system without building your own database,
and google firebase also have free plan. It is very good for develpoper who do not want to build their own database.

1. Go to firebase.google.com.

2. Click "Go to console".

3. Click "Create a new firebase project".

4. Name your Project and click "Continue".

5. For other options you click "continue" until you see this. Then you click "continue" again.

6. Build your app

7. On left side, go to "Project Overview" > "Setting (With a gearwheel)" > "Project settings"

8. Go to "Your apps" > "</>".

9. Add nickname to your webapp and then click "Resigister app".

10. Add the SDK on your website HTML code

For V8 firebase

If you want to use V8 verson, you don't to use moule, you need to add these script tag on your website and delete the moule code

<script src="https://www.gstatic.com/firebasejs/8.10.1/firebase-app.js"></script> 
<script src="https://www.gstatic.com/firebasejs/8.10.1/firebase-database.js"></script>

For V9 firebase

The V9 verson use module like, you just copy the code above

11. Initialize Firebase

On your javascript code, you need to add this code.

For Firebase Authentication you add:

var auth = firebase.auth();

For Firebase Database you add:

var database = firebase.database();

12. Done! You can write Your code now!

Read the API Reference to see all the firebase function.