Project from The Complete React Developer Course (w/ Hooks and Redux) by Andrew Mead
- React
- Redux
- Testing using JEST
- Firebase authentication and user accounts
- Javascript ES6
- Heroku
- Webpack
-
Git Clone
the repository and navigate to it'sroot folder
. -
Setup
firebase
by following below steps:cd src mkdir firebase cd firebase touch firebase.js
-
Copy paste the code snippet below:
import * as firebase from "firebase"; const firebaseConfig = { apiKey: "", authDomain: "", databaseURL: "", projectId: "", storageBucket: "", messagingSenderId: "", appId: "", measurementId: "", }; // Initialize Firebase firebase.initializeApp(firebaseConfig); const database = firebase.database(); const googleAuthProvider = new firebase.auth.GoogleAuthProvider(); export { firebase, googleAuthProvider, database as default };
-
Create a account on firebase and add project. From the project details copy paste the mentioned fields in empty strings.
-
Install npm packages:
npm install
-
Build the app:
npm run build:dev
-
Run the app
npm run dev-server
-
Go to
localhost:8080
on web browser.
-
Build and run the container
docker-compose up --build
-
Go to
localhost:8080
on web browser.