This is a template for getting a Create React App with Firebase up and running, quicker.
This template comes with Basic Firebase features connected into CRA such as Auth, Firestore, and Storage.
- Basic styling also included with React-Bootstrap.
- Three demo pages are included as well - Home, Login, Account.
You will need to create a Firebase project, and allow sign in with email/password in authentication. Setup Firestore and create "users" collection prior to these steps. [https://console.firebase.google.com/]
-
yarn -
firebase login -
firebase init& select Firestore, Hosting, and Storage. You will have to set up other features manually if needed. -
Add
buildas your public directory. -
Enter yes to configure to single-page-app.
-
Select no on overwrite
public/index.html -
Add Firebase config to
.env -
yarn start -
Write your code
-
yarn deploy