This project is an eCommerce clone built using Express.js for the backend, MongoDB for the database, and EJS for the frontend. It aims to provide a basic eCommerce platform with features such as a working cart, user authentication, and product management.
- Product browsing
- Product details display
- Adding products to the cart
- Updating and removing items from the cart
- Checkout process (basic implementation)
- Responsive design for various screen sizes
- Express.js: Used for building the backend server and handling HTTP requests.
- MongoDB: NoSQL database used for storing product data, user information, and session management.
- EJS (Embedded JavaScript): Frontend templating language used for rendering dynamic content on the server-side.
- Bootstrap: Frontend framework used for styling and layout.
- Express-session: Middleware used for session management.
- Node.js installed on your local machine.
- MongoDB installed and running locally or accessible remotely.
-
Clone the repository: git clone https://github.com/rugvedp/ecommerce-clone.git
-
Navigate into the project directory: cd ecommerce-clone
-
Install dependencies: npm install
-
Start the server: node .
-
Access the application in your web browser at
http://localhost:3000
.
You can also try out the hosted version of this project here.
If you want to download t-shirts information, download the tees.json
file and import it into MongoDB.
Contributions are welcome! If you'd like to contribute to this project, please fork the repository and submit a pull request.