{"id":19997997,"url":"https://github.com/major0001/e-commerce_website-alx-project","last_synced_at":"2026-04-12T15:13:32.447Z","repository":{"id":260461063,"uuid":"881111251","full_name":"major0001/E-commerce_Website-ALX-Project","owner":"major0001","description":"My ALX Final Project","archived":false,"fork":false,"pushed_at":"2024-10-31T12:29:05.000Z","size":41285,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T23:09:53.657Z","etag":null,"topics":["alx","alx-africa","alx-curriculum","alx-software-engineering","expressjs","mern","mongodb","nodejs","reactjs"],"latest_commit_sha":null,"homepage":"https://payment-gateway-lilac.vercel.app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/major0001.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-10-30T23:29:59.000Z","updated_at":"2024-10-31T12:29:09.000Z","dependencies_parsed_at":"2024-10-31T13:40:07.600Z","dependency_job_id":null,"html_url":"https://github.com/major0001/E-commerce_Website-ALX-Project","commit_stats":null,"previous_names":["major0001/e-commerce_website-alx-project"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/major0001/E-commerce_Website-ALX-Project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/major0001%2FE-commerce_Website-ALX-Project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/major0001%2FE-commerce_Website-ALX-Project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/major0001%2FE-commerce_Website-ALX-Project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/major0001%2FE-commerce_Website-ALX-Project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/major0001","download_url":"https://codeload.github.com/major0001/E-commerce_Website-ALX-Project/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/major0001%2FE-commerce_Website-ALX-Project/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002115,"owners_count":26083307,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["alx","alx-africa","alx-curriculum","alx-software-engineering","expressjs","mern","mongodb","nodejs","reactjs"],"created_at":"2024-11-13T05:06:48.809Z","updated_at":"2025-10-09T22:47:21.439Z","avatar_url":"https://github.com/major0001.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"E-Commerce Web Application\n==========================\n\nThis is an e-commerce web application built with the MERN (MongoDB, Express.js, React.js, Node.js) stack. The application includes features like user authentication, product search, cart management, and handling of ordered and refunded products.\n\nFeatures\n--------\n\n*   **User Authentication**: Secure login and signup functionality.\n    \n*   **Product Search**: Search products and view product details.\n    \n*   **Cart Management**: Add and remove products from the cart.\n    \n*   **Order Management**: View ordered and refunded products.\n    \n*   **Responsive Design**: Fully responsive layout for all devices.\n    \n\nTech Stack\n----------\n\n*   **Frontend**: React.js\n    \n*   **Backend**: Node.js, Express.js , Razorpay\n    \n*   **Database**: MongoDB\n    \n*   **Styling**: CSS, CSS Modules\n    \n\nGetting Started\n---------------\n\n### Prerequisites\n\n*   Node.js\n    \n*   npm or yarn\n    \n*   MongoDB\n    \n\n### Installation\n```bash\n1.git clone https://github.com/major0001/E-commerce_Website-ALX-Project\n    \n1.  cd server\n2.  npm install\n    \n3.   cd ../client    \n4.   npm install\n\n```\n\n### Environment Variables\n\nCreate a .env file in the server directory and add the following environment variables:\n\n```\nMONGO_URI=your_mongodb_connection_string  \nJWT_SECRET=your_jwt_secret  \nRAZORPAY_KEY_ID=your_razorpay_key_id  \nRAZORPAY_KEY_SECRET=your_razorpay_key_secret   `\n```\n### Running the Application\n\n```bash\n1. cd server \n2. npm start\n    \n3.  cd ../client \n4.  npm start\n\n```\nAPI Endpoints\n-------------\n\n### Authentication\n\n*   **POST** /api/v1/signup - Register a new user\n    \n*   **POST** /api/v1/login - Authenticate user and get token\n    \n\n### Payment\n\n*   **GET** /api/v1/getkeyid - Get Razorpay Key ID\n    \n*   **POST** /api/v1/capturepayment - Capture payment\n    \n*   **POST** /api/v1/refundpayment - Refund payment\n    \n*   **GET** /api/v1/fetchallpayments - Fetch all payments\n    \n*   **GET** /api/v1/getpaymentdetails/:id - Get payment details by ID\n    \n*   **GET** /api/v1/fetchcarddetails - Fetch card details\n    \n*   **POST** /api/v1/paymentverification - Verify payment\n\nPOSTMAN LINK - https://www.postman.com/roy707/workspace/shop-cart/collection/32632569-0177389f-3ffc-4d24-a8bb-9c869782bc67?action=share\u0026creator=32632569\n\n### Cart Management\n\n*   **POST** /api/v1/addtocart - Add product to cart\n    \n*   **DELETE** /api/v1/removefromcart - Remove product from cart\n    \n*   **POST** /api/v1/showcartitems - Show all cart items\n    \n\n### Order Management\n\n*   **POST** /api/v1/orderedproducts - Show all ordered products\n    \n*   **POST** /api/v1/refundedproducts - Show all refunded products\n\n### DB Schema\n\u003cimg width=\"928\" alt=\"Ecommerce_DB\" src=\"https://github.com/user-attachments/assets/c8e92ab8-3088-4f8a-902e-35a5d62f8fa7\"\u003e\n\nContribution\n------------\n\nFeel free to submit issues or pull requests if you have suggestions or improvements.\n\nLicense\n-------\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmajor0001%2Fe-commerce_website-alx-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmajor0001%2Fe-commerce_website-alx-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmajor0001%2Fe-commerce_website-alx-project/lists"}