-
-
Notifications
You must be signed in to change notification settings - Fork 59
Creating A Project
Scott edited this page Sep 27, 2018
·
5 revisions
Pick a project name. Everywhere that we use “firething”, replace that with your project name.
- Create a new project in the Firebase panel using your project name
- Get necessary config for project:
- Go to
Authentication
Tab - Click "Web Setup" in the top right corner
- Go to
Project Settings > Cloud Messaging
-
messagingSenderId
is part of app config - For
publicVapidKey
: click "Generate Key Pair"
Confirm the following services are enabled for your Firebase project:
- Enable Google Sign In Method under Auth tab
- Enable Firestore Database (test mode) and Real Time Database
- Create a project folder then enter the new folder:
mkdir firething && cd firething
- Now call the generator we installed through yeoman:
yo react-firebase
- Answer the prompts:
- Github Username - Your Github Username (leaving it blank will default to "testuser")
- Firebase projectId - Project Id from Firebase config
- Firebase apiKey - API Key from Firebase config
- Include redux for local state-management? - Yes (default)
- Use Firestore? - Yes (default)
- Other Features To Include - All features (default)
- What provider which you like to use for CI? - Gitlab (default)
- What service are you deploying to? - Firebase (default)
- Install dependencies:
npm i && npm i --prefix functions
- Start dev server:
npm start