Welcome to Sparkle, a full-featured e-commerce website developed using the MERN (MongoDB, Express, React, Node.js) stack. This platform provides a smooth and interactive shopping experience with a modern design, secure authentication, and responsive layout.
Sparkle is built with the following technologies:
- Frontend: React with Tailwind CSS for a responsive and modern user interface.
- Backend: Node.js and Express for robust API handling and server-side operations.
- Database: MongoDB for efficient data storage and retrieval.
- Authentication: JWT-based user authentication for secure access.
- Environment Configuration:
dotenv
to manage sensitive data securely.
- User Authentication & Authorization: Secure sign-in with JWT, ensuring privacy and access control.
- Product Management: CRUD operations for managing products and user profiles.
- Secure Password Handling: Secure password hashing for user accounts.
- Responsive Design: Optimized for both mobile and desktop devices.
- Environment Variables: Configured through
.env
for secure data handling.
To run Sparkle locally, follow these steps:
-
Clone the repository:
git clone https://github.com/yugalkaushik/sparkle.git
-
Navigate to the project directory:
cd sparkle
-
Install dependencies for both frontend and backend:
cd frontend npm install cd ../backend npm install
-
Configure Environment Variables:
- Create a
.env
file in thebackend
directory and add required variables such asMONGODB_URI
,JWT_SECRET
, etc. - Update the frontend and backend hosts accordingly.
- Create a
-
Run the Backend Server:
npm run server
-
Start the Frontend Development Server:
npm start
Contributions are welcome! Please fork the repository, create a new branch, and submit a pull request.