{"id":24836758,"url":"https://github.com/shuaib-code/cyclo","last_synced_at":"2026-04-10T15:52:34.051Z","repository":{"id":274286741,"uuid":"922465391","full_name":"shuaib-code/cyclo","owner":"shuaib-code","description":"𝐂𝐲𝐜𝐥𝐨: is a full-stack web platform that allows users to browse, purchase, and manage bicycles online. It includes role-based authentication, an intuitive UI/UX, and secure payment integration.","archived":false,"fork":false,"pushed_at":"2025-01-26T10:23:32.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T10:27:03.965Z","etag":null,"topics":["react","redux","rtk-query","shadcn-ui","sonner","typescript"],"latest_commit_sha":null,"homepage":"https://cyclo-one.vercel.app","language":"TypeScript","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/shuaib-code.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-01-26T09:36:40.000Z","updated_at":"2025-01-26T10:23:35.000Z","dependencies_parsed_at":"2025-01-26T10:37:07.693Z","dependency_job_id":null,"html_url":"https://github.com/shuaib-code/cyclo","commit_stats":null,"previous_names":["shuaib-code/cyclo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuaib-code%2Fcyclo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuaib-code%2Fcyclo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuaib-code%2Fcyclo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuaib-code%2Fcyclo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shuaib-code","download_url":"https://codeload.github.com/shuaib-code/cyclo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245585805,"owners_count":20639671,"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":["react","redux","rtk-query","shadcn-ui","sonner","typescript"],"created_at":"2025-01-31T05:43:44.054Z","updated_at":"2025-12-30T23:25:00.194Z","avatar_url":"https://github.com/shuaib-code.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg \n    src=\"https://raw.githubusercontent.com/shuaib-code/cyclo/main/src/assets/crank1.png\" \n    alt=\"Cyclo Logo\" \n    width=\"200\" \n    height=\"200\"\n    style=\"display: inline-block; margin-right: 0;\"\n  \u003e\n  \u003cimg \n    src=\"https://raw.githubusercontent.com/shuaib-code/cyclo/main/src/assets/cyclo-logo.png\" \n    alt=\"Cyclo text Logo\"\n     width=\"450\"\n    style=\"display: inline-block;\"\n  \u003e\n\u003c/p\u003e\n\n# 🚴Cyclo, Bicycle Store Application\n\n## 📌 Project Overview\n\nThe **Bicycle Store Application** is a full-stack web platform that allows users to browse, purchase, and manage bicycles online. It includes role-based authentication, an intuitive UI/UX, and secure payment integration.\n\n## ✨ Features\n\n### 🔓 Authentication\n\n- Secure user registration and login with hashed passwords\n- Role-based access control (Customer \u0026 Admin)\n- JWT-based authentication and session management\n\n### 🪪 Credentials\n\n- **Email**: admin@gmail.com\n- **password**: 111111\n\n### 🏠 Public Routes\n\n- **Home Page**: Featured bicycles, promotions, and customer testimonials\n- **All Bicycles Page**: Search, filter, and view bicycle details\n- **Bicycle Details Page**: Detailed specifications with a \"Buy Now\" option\n- **About Page**: Information about the bicycle store and mission\n\n### 🔒 Private Routes\n\n- **Checkout Page**: Secure ordering with stock validation and payment processing\n- **User Dashboard**: View and manage orders, update profile and passwords\n- **Admin Dashboard**: Manage users, bicycles (CRUD operations), and orders\n\n### 💳 Payment Integration\n\nSupports **Stripe** for secure transactions.\n\n## 🛠️ Tech Stack\n\n### **Frontend**\n\n- React, TypeScript, Redux (RTK Query), Tailwind CSS, ShadCN\n\n### **Backend**\n\n- Node.js, Express.js, MongoDB (Mongoose, Zod for validation) -[!Server Side Repo](https://github.com/shuaib-code/cyclo-server)\n\n### **Authentication \u0026 Security**\n\n- JWT, bcrypt for password hashing, role-based access control\n\n## 🚀 Getting Started\n\n### 🔧 Installation\n\n1. Clone the repository:\n   ```sh\n   git clone https://github.com/shuaib-code/cyclo-client.git\n   ```\n2. Navigate to the project folder:\n   ```sh\n   cd cyclo-client\n   ```\n3. Install dependencies:\n   ```sh\n   npm install\n   ```\n\n### 🔑 Environment Variables\n\nCreate a `.env` file in the root directory and add the following:\n\n```\n# Server url\n# VITE_API_URL=https://api.example.com\n#VITE_CLOUDINARY_UPLOAD_PRESET=your_preset\n#VITE_CLOUDINARY_CLOUD_NAME=your_cloud_name\n#VITE_CLOUDINARY_URL=https://api.cloudinary.com/v1_1/your_cloud_name/image/upload\n#VITE_SP= Stripe pusblisable key\n```\n\n### 🚀 Run the Application\n\n#### **Frontend**\n\n```sh\ncd client\nnpm start\n```\n\n#### **Backend**\n\n```sh\ncd server\nnpm start\n```\n\n## 📜 API Endpoints\n\n### **Auth**\n\n- `POST /api/auth/register` - Register a new user\n- `POST /api/auth/login` - Login and receive JWT token\n- `POST /api/auth/logout` - Logout user\n\n### **Bicycles**\n\n- `GET /api/bicycles` - Get all bicycles\n- `POST /api/bicycles` - Add a new bicycle (Admin only)\n- `PUT /api/bicycles/:id` - Update bicycle details (Admin only)\n- `DELETE /api/bicycles/:id` - Remove a bicycle (Admin only)\n\n### **Orders**\n\n- `POST /api/orders` - Place an order\n- `GET /api/orders/user` - Get user-specific orders\n- `GET /api/orders/admin` - Get all orders (Admin only)\n\n## 🛠️ Contributing\n\n1. Fork the repository\n2. Create a new branch (`feature-xyz`)\n3. Commit your changes (`git commit -m 'Add new feature'`)\n4. Push to the branch (`git push origin feature-xyz`)\n5. Open a Pull Request\n\n## 📄 License\n\nThis project is **open-source** and available under the MIT License.\n\n---\n\n🚴 **Happy Coding!**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshuaib-code%2Fcyclo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshuaib-code%2Fcyclo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshuaib-code%2Fcyclo/lists"}