This project was bootstrapped with Create React App.
-
Login via firebase CLI
firebase login
-
In the files
.firebaserc
andfirebase.json
replacetest-project-20210119
with your Firebase project name -
In the file
src/common/firebaseConfig.ts
replace thefirebaseConfig
value with the config of the web app you created inside your firebase Project -
Ensure that email authentication is enabled inside Firebase Auth
-
Install dependencies:
yarn
- Deploy Firestore rules:
yarn deploy-rules
- Run the project:
yarn start
- Open http://localhost:3000 to view it in the browser.
yarn start
Open http://localhost:3000 to view it in the browser.
Before committing your code, always run yarn lint:fix
(inside the root and functions
folders) to fix the code style. Ensure that your code has 0 errors after running that command (warnings are acceptable, but not recommended too).
yarn build
yarn deploy-hosting
cd functions
yarn build
yarn deploy