.
Google Firebase: Getting Started
1) Create Firebase Project
- Create a Firebase project in the Firebase console, if you don't already have one.
- If you already have an existing Google project associated with your app, click Import Google Project. Otherwise, click Create New Project.
- If you already have a Firebase project, click Add App from the project overview page.
- Click Add Firebase to your web app.
- Note the initialization code snippet, which you will use in a minute.
authDomain: "notarazicom.firebaseapp.com",
databaseURL: "https://notarazicom.firebaseio.com", storageBucket: "notarazicom.appspot.com", |
2) Run a Local Web Server for Development
If you are building a web app, you will find that some parts of the Firebase JavaScript SDK require that your web app be served from a server rather than from the local filesystem. You can use the Firebase CLI to run a local server like this:
$ npm install -g firebase-tools
$ firebase init # Generate a firebase.json (REQUIRED) $ firebase serve # Start development server |
firebase login
firebase init
Associate Local Project Directory to Firebase Project
Database Setup
Functions Setup
Hosting Setup
Web Page Setup
firebase serve
CTRL+C to shutdown localhost server
firebase logout
Firebase Command Summary
(go into new local project directory)
firebase login
firebase init
firebase serve
firebase logout
|
No comments:
Post a Comment