A full-stack e-commerce platform inspired by Amazon, built with React, Firebase, and Stripe.
- User authentication with Firebase.
- Real-time shopping cart updates.
- Secure payment processing with Stripe.
- Responsive design.
- Frontend: React
- Backend: Firebase Functions, Express
- Database: Firestore
- Payment: Stripe API
-
Clone the repository:
git clone https://github.com/your-username/amazon-clone.git
-
Install dependencies:
cd amazon-clone npm install -
Firebase Configuration This project requires Firebase configuration stored in a
.envfile. Please create a.envfile in the root directory. -
Start the development server:
npm start
/src: Contains the React components and CSS files./functions: Firebase backend logic.
Contributions are welcome! Fork the repository and submit a pull request.
This project is based on the tutorial by Clever Programmer.
You can watch the original tutorial here: Build an Amazon Clone with React, Firebase & Stripe.
The tutorial was published in 2021, and I have made the following updates to ensure compatibility with the latest versions of the libraries:
- Stripe: Migrated to
stripe@17.4.0to support the latest API changes and improved error handling. - Firebase: Replaced the deprecated Firebase SDK (
firebase@8.x) with the modular Firebase SDK (firebase@9.x+), adjusting the initialization and query methods accordingly. - React Router: Migrated from
react-router-dom@5.xtoreact-router-dom@6.xand updated navigation logic (e.g., replaceduseHistory()withuseNavigate()). - Styling: Improved CSS for better modern design aesthetics.
