This is an e-commerce site built using React, Tailwind CSS, Node.js, Express, and MongoDB. The project includes a responsive user interface with a modern design and integrates a backend API to handle product management, user authentication, and order processing. Toast notifications are used for providing feedback to users.
-
Frontend:
- Built with React for a dynamic and responsive user experience.
- Styled using Tailwind CSS for easy and customizable styling.
- Includes interactive toast notifications for feedback using react-toastify.
- Product listing, cart management, and checkout functionality.
-
Backend:
- API built with Node.js and Express.
- MongoDB used for data storage (products, users, orders, etc.).
- Includes routes for product management, user registration, login, and order processing.
-
Libraries & Tools:
- react-toastify for toast notifications.
- MongoDB for database storage.
- Express for backend API.
-
Frontend:
- React.js
- Tailwind CSS
- react-toastify
-
Backend:
- Node.js
- Express
- MongoDB (with Mongoose)
-
Navigate to the
front_end/directory:cd front_end -
Install the dependencies:
npm install
-
Start the React development server:
npm start
The frontend should now be running at
http://localhost:3000.
-
Navigate to the
backend/directory:cd backend -
Install the dependencies:
npm install
-
Create a
.envfile in thebackend/directory and add your MongoDB URI:MONGODB_URI=your_mongodb_connection_string
-
Start the backend server:
npm start
The backend should now be running at
http://localhost:3000.
- Frontend: The React app communicates with the backend API to fetch product data, handle user authentication, manage the shopping cart, and process orders.
- Backend: The Express API handles routes for managing products, user registration/login, and order management.
- Fetch a list of all products.
- Place a new order.
Feel free to fork this project and make changes. If you'd like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-name). - Make your changes.
- Commit your changes (
git commit -am 'Add new feature'). - Push to the branch (
git push origin feature-name). - Create a new Pull Request.
- React: A JavaScript library for building user interfaces.
- Tailwind CSS: A utility-first CSS framework.
- Node.js: JavaScript runtime built on Chrome's V8 JavaScript engine.
- Express: Fast, unopinionated, minimalist web framework for Node.js.
- MongoDB: NoSQL database used to store application data.
- react-toastify: A library for toast notifications in React.