Hello guys, Here I have done a clone website of Amazon using React and authorized with Firebase. Through this project, I have learned a lot about React with Redux, Authorization with Firebase and Style with Tailwind CSS.
This project uses Tailwind CSS for styling elements and It uses redux state management, There is no perfect state management solution, Redux maintains Centralized state management so for this I choose redux. Let's get started with the Project.
Add the node modules to your project:
npm install
use this command if you get an error:
npm install -g npm
While running your project till you get an error as 'react-scripts' is not recognized as an internal or external command
then use:
npm install react-scripts --save
for Installing Tailwind CSS:
npm install -D tailwindcss
npx tailwindcss init
Add the Redux Toolkit and React Redux packages to your project:
npm install @reduxjs/toolkit react-redux
for connecting with Firebase:
npm install firebase react-router-dom react-firebase-hooks
for installing Firebase tools:
npm install -g firebase-tools
If you are hosting with Firebase, then use the following commands: First, we will initialize a Firebase project in our React app by running the following command in the console in our root directory. Authorize your Project details in Firebase.
firebase init
npm run build
Now we just need to run the last command and our application will be deployed.
firebase deploy
This will deploy our project and also provide us with the hosting link which we can visit.
The following images are the output of my project.