This is an e-commerce project developed as part of the AUST CSE2200 Software Development-III lab course. The project uses the MERN stack along with React, JavaScript, and Vite. It features a fully functional e-commerce website where users can browse products, add them to the cart, and make purchases. The project also includes a news feed fetched from the News API.
Live Project Link: VERCEL
-
Frontend:
-
React
-
JavaScript
-
Vite
-
News API (for fetching news feed)
-
Backend:
-
Node.js
-
Express.js
-
MongoDB
-
Cloudinary (for image storage)
-
Postman (for API testing)
To get started with this project, follow these steps:
- Navigate to the
frontend
directory:
cd frontend
- Create a .env file in the frontend directory with the following contents:
VITE_BASEURL="YOUR_BACKEND_URL"
VITE_NEWS2_API_KEY="YOURAPIKEY"
- Install the necessary dependencies:
npm install
- Start the development server:
npm run dev
The frontend will be available at http://localhost:5173
.
- Navigate to the
backend
directory:
cd backend
- Create a .env file in the backend directory with the following contents:
mongoDb="your mongodb url"
FRONTEND_URL="your frontend url"
PORT=any
CLOUDINARY_CLOUD_NAME="your cloudinary cloud name"
CLOUDINARY_API_KEY="your cloudinary api key"
CLOUDINARY_API_SECRET="your cloudinary api secret"
JWT_SECRET="your jwt secret"
EMAIL_USER="your email user"
EMAIL_PASS="your email password"
- Install the necessary dependencies:
npm install
- Start the development server:
npm run dev
The backend will be available at http://localhost:5000
.
- Frontend:
-
Browse products.
-
User authentication (login, register)
-
Add products to the cart.
-
Complete purchases & Payment process.
-
View the news feed.
-
Image upload using Cloudinary
- Backend:
-
API endpoints are available for managing products, user authentication, and orders.
-
Use Postman to test API endpoints.
This project was developed by:
If you'd like to contribute to this project, please fork the repository and submit a pull request with your changes.
-
Cloudinary for image storage
-
News API for providing news feed
-
Postman for API testing
Feel free to adjust any sections or add more details specific in this project. Thank you.