This project was bootstrapped with Create React App.
-
Login via firebase CLI
firebase login -
In the files
.firebasercandfirebase.jsonreplacetest-project-20210119with your Firebase project name -
In the file
src/common/firebaseConfig.tsreplace thefirebaseConfigvalue 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 startOpen 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-hostingcd functions
yarn build
yarn deploy