{"id":26023077,"url":"https://github.com/ajaykumar2pp/capstone-storefleet","last_synced_at":"2026-04-13T02:45:17.630Z","repository":{"id":278895005,"uuid":"937100153","full_name":"ajaykumar2pp/Capstone-StoreFleet","owner":"ajaykumar2pp","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-22T11:07:40.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-22T11:28:24.523Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ajaykumar2pp.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":"2025-02-22T10:36:58.000Z","updated_at":"2025-02-22T11:07:43.000Z","dependencies_parsed_at":"2025-02-22T11:38:27.348Z","dependency_job_id":null,"html_url":"https://github.com/ajaykumar2pp/Capstone-StoreFleet","commit_stats":null,"previous_names":["ajaykumar2pp/capstone-storefleet"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajaykumar2pp%2FCapstone-StoreFleet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajaykumar2pp%2FCapstone-StoreFleet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajaykumar2pp%2FCapstone-StoreFleet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajaykumar2pp%2FCapstone-StoreFleet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajaykumar2pp","download_url":"https://codeload.github.com/ajaykumar2pp/Capstone-StoreFleet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242195214,"owners_count":20087752,"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":[],"created_at":"2025-03-06T10:39:52.362Z","updated_at":"2026-04-13T02:45:12.608Z","avatar_url":"https://github.com/ajaykumar2pp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Capstone StoreFleet Project 🚀\n\nStoreFleet is a **MERN stack-based** capstone project designed to manage and track store inventory efficiently. It includes authentication, inventory management, user roles, and real-time updates.\n\n\n## 🛠 Tech Stack\n- **Backend:** Node.js, Express.js, MongoDB, Mongoose\n\n## 📁 Folder Structure\n\n```plaintext\nCapstone-StoreFleet/\n│\n├── server/             # Backend\n│   ├── config/         # Database and authentication config\n│   ├── controllers/    # Route controllers\n│   ├── models/        # Mongoose Models (User, Inventory)\n│   ├── routes/        # Express Routes\n│   ├── middlewares/   # Auth and error handling\n│   ├── utils/         # Utility functions\n│   ├── server.js      # Main backend entry point\n│   ├── package.json\n│\n└── README.md           # Project Documentation\n```\n\n## 🔧 Installation\n\nClone the repository:\n```bash\ngit clone https://github.com/ajaykumar2pp/Capstone-StoreFleet.git\ncd capstone-storefleet\n```\n\nInstall dependencies:\n```bash\n# Install backend dependencies\ncd  capstone-storefleet\nnpm install\n\n\n\n## 🚀 Usage\n\nStart the backend server:\n```bash\ncd capstone-storefleet\nnpm run dev\n```\n\nOpen **http://localhost:3000** in your browser.\n\n## 🔑 Environment Variables\nCreate a `.env` file in the `server/` directory and add:\n```plaintext\nPORT=3000  \nMONGO_URI=your_mongodb_uri  \nJWT_SECRET=your_jwt_secret  \nJWT_EXPIRE=1d  \nCOOKIE_EXPIRES_IN=1  \nSMPT_SERVICE=gmail\nSTORFLEET_SMPT_MAIL= google@gmail.com\nSTORFLEET_SMPT_MAIL_PASSWORD = 1234567895412\n```\n\n## Postman Collection\nYou can access the Postman collection for Store Fleet using the link below:\n\n[Store Fleet Postman Collection](https://www.postman.com/solar-escape-571108/store-fleet/collection/itzxqph/storefleet)\n\n\n## 🛠 API Endpoints\n\n### **Auth Routes**\n- `POST /api/auth/register` - Register a new user\n- `POST /api/auth/login` - Login user\n\n### **User Routes**\n- `GET /api/user/details` - Get User Details\n- `GET /api/user/logout` - Logout User\n\n## **Admin Routes**\n- `GET /api/admin/allusers` - Get ALl Users (Admin only)\n- `GET /api/admin/details/:id` - Get User Details (Admin only)\n- `DELETE /api/admin/delete/:id` - Delete User (Admin only)\n- `PUT /api/admin/update/:id` - Update User Role (Admin only)\n\n### **Product Routes**\n- `GET /api/products` - Get All Products\n- `GET /api/details/:id` - Get Product Details\n- `GET /api/reviews/:id` - Get All Reviews for a Product\n\n### **Admin Product Routes**\n- `POST /api/add` - Add New Product (Admin only)\n- `PUT /api/update/:id` - Update Product (Admin only)\n- `DELETE /api/delete/:id` - Delete Product (Admin only)\n\n### **User Product Routes**\n- `PUT /api/rate/:id` - Rate a Product\n- `DELETE /api/review/delete` - Delete a Review\n\n### **Order Routes**\n- `POST /api/order/new` - Create a New Order\n\n## 📜 License\nThis project is licensed under the **MIT License**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajaykumar2pp%2Fcapstone-storefleet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajaykumar2pp%2Fcapstone-storefleet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajaykumar2pp%2Fcapstone-storefleet/lists"}