Skip to content

Myke-Max/Around_Flats

Repository files navigation

Getting Started with Create React App

This project was bootstrapped with Create React App.

Getting started

  1. Login via firebase CLI firebase login

  2. In the files .firebaserc and firebase.json replace test-project-20210119 with your Firebase project name

  3. In the file src/common/firebaseConfig.ts replace the firebaseConfig value with the config of the web app you created inside your firebase Project

  4. Ensure that email authentication is enabled inside Firebase Auth

  5. Install dependencies:

yarn
  1. Deploy Firestore rules:
yarn deploy-rules
  1. Run the project:
yarn start
  1. Open http://localhost:3000 to view it in the browser.

Running the app locally

yarn start

Open http://localhost:3000 to view it in the browser.

Code quality standards

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).

How to deploy my app to Firebase Hosting?

yarn build
yarn deploy-hosting

How to deploy my app functions?

cd functions
yarn build
yarn deploy