ShopSphere is a full-stack e-commerce website built using the MERN (MongoDB, Express.js, React.js, Node.js) stack. It provides users with a seamless shopping experience and includes features such as product listings, shopping cart functionality(to be implemented), secure payment integration (to be implemented), and an admin panel for managing the store (to be implemented).
- User Authentication: Secure login and registration with encrypted user data.
- Product Management: Display products with details like price, description, reviews, and availability.
- Shopping Cart: Add, remove, and update products in real-time.
- Search and Filter: Find products quickly with search and filter functionalities.
- Payment Integration: Secure payment gateway for hassle-free transactions.
- Order Management: View order history, track orders, and handle returns.
- Admin Panel: Manage inventory, add/edit products, and track sales.
- Mobile Responsive: Optimized for all screen sizes.
- Frontend: React.js, CSS/TailwindCSS
- Backend: Node.js, Express.js
- Database: MongoDB
- Other Tools: Axios, Redux (or Context API),BcryptJS, JsonWebToken, JWT Authentication and many more.
Ensure you have the following installed on your system:
- Node.js (>=14.x)
- MongoDB
- Git
-
Clone the Repository:
git clone https://github.com/your-username/shopsphere.git cd ShopSphere
-
Install Dependencies: For both FrontEnd(client) and BackEnd(server):
cd frontend npm install cd ../backend npm install
-
Set Up Environment Variables: Create a
.env
file in theserver
folder and add the following:PORT=your_localhost_url (e.g: http://localhost:3000) MONGO_URI=your_mongodb_connection_string JWT_SECRET=your_secret_key
-
Start the Development Server: Run the backend and frontend servers simultaneously:
#Start frontend and backend concurrently npm run dev # Start the backend server cd backend npm run backend # Start the frontend client cd frontend npm run frontend
Try to run both frontend and backend concurrently even if you are only interested in working with frontend for the website to run smoothly as frontend is heavily dependent on the backend
- Access the Application:
Open your browser and go to
http://localhost:3000
to see the application running. (Replace the localhost url if you are running the code somewhere else)
We welcome contributions to make ShopSphere better! To contribute:
- Fork the repository.
- Clone the repository into your local machine:
git clone https://github.com/your-username/shopsphere.git
- Create a new branch for your feature or bug fix:
(There are some codes which have been commented for references you can either uncomment it and improve the code for integrating purpose or remove the commented code to make your own code)
git checkout -b feature-name
- Commit your changes:
git commit -m "Add your message here"
- Push your branch:
git push origin feature-name
- Open a pull request on the main repository.
If you have any questions or feedback, feel free to open an issue or contact me at [[email protected]].