The Firebase Database quickstart demonstrates how to connect to the Firebase Realtime Database and to send and retrieve data through a simple social blogging app. It will interoperate with the iOS and Android database quickstarts.
config.ts
file in the database directory.npm install -g firebase-tools
and then configure it with firebase login
.npm install
to install the app's dependencies.firebase use --add
and select the Firebase project you have created.To run the sample app locally during development:
npm install
to install dependencies.firebase emulators:start
to start the local Firebase emulators.npm run dev
to serve the app locally using Vite
This will start a server locally that serves index.html
on http://localhost:5173/index.html
.Running the app using the Firebase CLI:
npm install
to install dependencies.npm run build
to build the app using Vite.firebase emulators:start
to start the local Firebase emulators.127.0.0.1:5002
, though it may be different for you.firebase emulators:start
command.To deploy the sample app to production:
firebase deploy
.
This will deploy the sample app to https://<project_id>.firebaseapp.com
.© Google, 2016. Licensed under an Apache-2 license.