{"id":21454525,"url":"https://github.com/pranav2092/ecommerce-app","last_synced_at":"2026-01-27T20:10:09.536Z","repository":{"id":261030802,"uuid":"862548159","full_name":"Pranav2092/ecommerce-app","owner":"Pranav2092","description":"This e-commerce web application allows users to browse products, add items to their cart, and make purchases securely. The app includes a fully integrated payment system, user authentication, and various other features to ensure smooth and secure transactions.","archived":false,"fork":false,"pushed_at":"2024-11-04T09:37:07.000Z","size":8898,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-04T10:30:22.452Z","etag":null,"topics":["axios","bycrypt","cloudinary","cors","dotenv","express","html-css-javascript","jsonwebtoken","mongodb","mongodb-atlas","multer","nodejs","razorpay","react","react-dom","react-router-dom","react-toastify","reactjs","stripe","validator"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Pranav2092.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-24T19:32:38.000Z","updated_at":"2024-11-04T09:37:11.000Z","dependencies_parsed_at":"2024-11-04T10:41:54.559Z","dependency_job_id":null,"html_url":"https://github.com/Pranav2092/ecommerce-app","commit_stats":null,"previous_names":["pranav2092/ecommerce-app"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pranav2092%2Fecommerce-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pranav2092%2Fecommerce-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pranav2092%2Fecommerce-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pranav2092%2Fecommerce-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pranav2092","download_url":"https://codeload.github.com/Pranav2092/ecommerce-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226003044,"owners_count":17558157,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["axios","bycrypt","cloudinary","cors","dotenv","express","html-css-javascript","jsonwebtoken","mongodb","mongodb-atlas","multer","nodejs","razorpay","react","react-dom","react-router-dom","react-toastify","reactjs","stripe","validator"],"created_at":"2024-11-23T05:07:57.827Z","updated_at":"2026-01-27T20:10:09.467Z","avatar_url":"https://github.com/Pranav2092.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\n\n# E-Commerce App\n\n## Overview\n\nThis e-commerce web application allows users to browse products, add items to their cart, and make purchases securely. The app includes a fully integrated payment system, user authentication, and various other features to ensure smooth and secure transactions.\n\n### Technologies Used:\n- **Frontend**: React, HTML, CSS, JavaScript\n- **Backend**: Node.js, Express\n- **Database**: MongoDB\n- **Payment Gateways**: Razorpay, Stripe\n- **Security**: JWT (JSON Web Token), bcrypt\n- **Other Libraries/Packages**:\n  - Validator\n  - Multer\n  - Cloudinary (for image uploads)\n  - React Router DOM (for routing)\n  - React Toastify (for notifications)\n  - Axios (for API requests)\n\n### Features:\n1. **User Authentication**:\n   - Secure registration and login using JWT and bcrypt.\n   - Passwords are hashed using bcrypt before being stored in the database.\n\n2. **Product Management**:\n   - Add, update, and delete products with images uploaded to Cloudinary.\n   - Multer is used for handling file uploads.\n\n3. **Shopping Cart**:\n   - Users can browse products and add them to their cart.\n   - The cart can be updated before proceeding to checkout.\n\n4. **Payment Integration**:\n   - Integrated with Razorpay and Stripe for secure payments.\n   - Users can choose their preferred payment gateway during checkout.\n\n5. **Order Management**:\n   - Users can view their order history.\n   - Admin users can manage orders (update status, track payments).\n\n6. **Responsive Design**:\n   - The app is mobile-friendly and adapts to different screen sizes.\n\n7. **Notifications**:\n   - React Toastify is used to display notifications for actions like adding items to the cart, successful payment, etc.\n\n8. **Data Validation**:\n   - Input data is validated using the Validator library to ensure proper formatting and security.\n\n---\n\n## Installation\n\n### Prerequisites\nEnsure that you have the following installed on your system:\n- [Node.js](https://nodejs.org/)\n- [MongoDB](https://www.mongodb.com/)\n- [Git](https://git-scm.com/)\n\n### Steps\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/Pranav2092/ecommerce-app.git\n   cd ecommerce-app\n   ```\n\n2. Install dependencies:\n   ```bash\n   npm install\n   ```\n\n3. Create a `.env` file in the root directory with the following environment variables:\n   ```\n   MONGODB_URI=your_mongodb_uri\n   JWT_SECRET=your_jwt_secret\n   CLOUDINARY_CLOUD_NAME=your_cloudinary_cloud_name\n   CLOUDINARY_API_KEY=your_cloudinary_api_key\n   CLOUDINARY_API_SECRET=your_cloudinary_api_secret\n   RAZORPAY_KEY_ID=your_razorpay_key_id\n   RAZORPAY_KEY_SECRET=your_razorpay_key_secret\n   STRIPE_SECRET_KEY=your_stripe_secret_key\n   ```\n\n4. Start the development server:\n   ```bash\n   npm start\n   ```\n\nThe server will run on `http://localhost:3000` by default.\n\n---\n\n## Usage\n\n### API Endpoints\nThe following are the main API endpoints available in the application:\n\n#### User Routes\n- **POST** `/api/users/register`: Register a new user.\n- **POST** `/api/users/login`: Log in with existing credentials.\n- **GET** `/api/users/profile`: Get user profile details (requires authentication).\n\n#### Product Routes\n- **GET** `/api/products`: Fetch all products.\n- **POST** `/api/products`: Add a new product (requires admin access).\n- **PUT** `/api/products/:id`: Update a product (requires admin access).\n- **DELETE** `/api/products/:id`: Delete a product (requires admin access).\n\n#### Cart Routes\n- **POST** `/api/cart`: Add items to the cart.\n- **GET** `/api/cart`: Get items in the cart for the current user.\n\n#### Order Routes\n- **POST** `/api/orders`: Create a new order after payment.\n- **GET** `/api/orders`: Get order history for the current user.\n\n#### Payment Routes\n- **POST** `/api/payment/razorpay`: Make a payment using Razorpay.\n- **POST** `/api/payment/stripe`: Make a payment using Stripe.\n\n---\n\n## Frontend Structure\nThe frontend is built with **React**, and the main components are:\n\n- **HomePage**: Displays all products.\n- **ProductPage**: Shows detailed information for a specific product.\n- **CartPage**: Manages the user’s cart.\n- **CheckoutPage**: Handles the payment process.\n- **Auth Pages**: For login and registration.\n- **Admin Pages**: For managing products and orders (accessible to admin users).\n\n### Key Libraries\n- **React Router DOM**: Handles routing between different pages.\n- **Axios**: Used for making HTTP requests to the backend.\n- **React Toastify**: Used for displaying notifications.\n\n---\n\n## Deployment\nThis project has been deployed on vercel. It can be viewed from the following links:\n\n  Frontend : https://ecommerce-app-frontend-4bwdo6n8o.vercel.app/\n  \n  Backend : https://ecommerce-app-backend-fotktr7cu.vercel.app/\n  \n  Admin Panel : https://ecommerce-app-admin-bmfgbjmn6-pranav-sharmas-projects-37b3b875.vercel.app/\n\n---\n\n## Contributing\n\n1. Fork the repository.\n2. Create a new feature branch (`git checkout -b feature-branch`).\n3. Commit your changes (`git commit -m 'Add some feature'`).\n4. Push to the branch (`git push origin feature-branch`).\n5. Open a pull request.\n\n---\n\n## License\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n---\n\nThis documentation provides a comprehensive overview of your e-commerce project, installation instructions, API endpoints, and key features. Feel free to modify any sections as needed.\n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpranav2092%2Fecommerce-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpranav2092%2Fecommerce-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpranav2092%2Fecommerce-app/lists"}