apoorvpandey-ap / firebase-db

0 stars 0 forks source link

Not in a Firebase app directory (could not locate firebase.json) #1

Open apoorvpandey-ap opened 4 years ago

apoorvpandey-ap commented 4 years ago

npm install -g firebase-tool

firebase login

firebase init

=== Project Setup

First, let's associate this project directory with a Firebase project. You can create multiple project aliases by running firebase use --add, but for now we'll just set up a default project.

? Please select an option: Use an existing project ? Select a default Firebase project for this directory: fir-demo-c57e9 (FirebaseDemo) i Using project fir-demo-c57e9 (FirebaseDemo)

=== Database Setup

Firebase Realtime Database Rules allow you to define how your data should be structured and when your data can be read from and written to.

### ? What file should be used for Database Rules? firebase.json__

Your public directory is the folder (relative to your project directory) that will contain Hosting assets to be uploaded with firebase deploy. If you have a build process for your assets, use your build's output directory.

? What do you want to use as your public directory? yes ? Configure as a single-page app (rewrite all urls to /index.html)? Yes

i Writing configuration info to firebase.json...

=== Deploying to 'fir-demo-c57e9'...

i deploying database, hosting i database: checking rules syntax...