Live Project: https://clone-ddfd4.web.app/
# Clone the application
git clone https://github.com/kirankumargonti/amazon-clone.git
# Install dependencies
npm install
# Serve on localhost:3000
npm start
-
Create a Project and add Firebase Configuration to
- src / firebase.js file it looks like this
const firebaseConfig = { apiKey: "", authDomain: "", databaseURL: "", projectId: "", storageBucket: "", messagingSenderId: ": "", measurementId: "" };
- Goto Authentication tab left side in the project Dashboard
- Enable Email/Password to your project
# Build for production
$ npm run build
# Install firebase tools
$ npm install -g firebase-tools
# Login to firebase
$ firebase login
# Initialize your firebase project
$ firebase init
# Important Steps
- Use an existing project
- What do you want to use as your public directory?
build
- Configure as a single-page app
(rewrite all urls to /index.html)? Yes
- File build/index.html already exists. Overwrite? No
# Deploy to firebase
$ firebase deploy