{"id":20260140,"url":"https://github.com/almoghindi/sport-tickets","last_synced_at":"2026-04-07T07:03:40.577Z","repository":{"id":244654645,"uuid":"815878209","full_name":"almoghindi/Sport-tickets","owner":"almoghindi","description":" Sport-tickets is a cutting-edge platform for managing sports event tickets, featuring secure authentication, AI-driven recommendations, real-time updates, and efficient order processing. Built with Next.js, React, Redux, react-query, TailwindCSS, Node.js, Express, MongoDB, Kafka, Docker, Kubernetes and Redis, it ensures a seamless user experience.","archived":false,"fork":false,"pushed_at":"2024-08-30T11:54:19.000Z","size":6293,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-03T12:27:10.703Z","etag":null,"topics":["ai","cicd","docker","express","github-actions","google-cloud","jwt","kafka","kubernetes","microservices","mongodb","nextjs","nodejs","openai-api","react","react-hooks","redis","redux","stripe","typescript"],"latest_commit_sha":null,"homepage":"","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/almoghindi.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-06-16T11:59:36.000Z","updated_at":"2024-08-30T11:54:22.000Z","dependencies_parsed_at":"2024-06-26T16:41:40.290Z","dependency_job_id":"e7952dd2-789e-4077-b013-a0fc9de599fd","html_url":"https://github.com/almoghindi/Sport-tickets","commit_stats":null,"previous_names":["almoghindi/sport-tickets"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/almoghindi/Sport-tickets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almoghindi%2FSport-tickets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almoghindi%2FSport-tickets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almoghindi%2FSport-tickets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almoghindi%2FSport-tickets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/almoghindi","download_url":"https://codeload.github.com/almoghindi/Sport-tickets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almoghindi%2FSport-tickets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31503394,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ai","cicd","docker","express","github-actions","google-cloud","jwt","kafka","kubernetes","microservices","mongodb","nextjs","nodejs","openai-api","react","react-hooks","redis","redux","stripe","typescript"],"created_at":"2024-11-14T11:18:09.138Z","updated_at":"2026-04-07T07:03:40.556Z","avatar_url":"https://github.com/almoghindi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sport-tickets\n\nSport-tickets is a comprehensive platform designed for browsing, purchasing, and managing tickets for various sports events. The platform is built with a microservices architecture, utilizing modern technologies to ensure scalability, reliability, and maintainability.\n\n## Overview\n\n### Core Features\n\n- **User Authentication**: Secure user registration and login.\n- **Ticket Management**: Browse and manage sports event tickets.\n- **Order Processing**: Create and manage orders for tickets.\n- **Payment Handling**: Secure payment processing for ticket purchases.\n- **AI Recommendations**: Personalized AI-driven ticket recommendations based on user activity.\n- **Expiration Service**: Manages the expiration of unpaid orders.\n- **Event Streaming**: Real-time updates and communication between microservices with Apache Kafka.\n- **State Management**: Efficient state management using Redux.\n- **Caching**: Enhanced performance through Redis caching.\n\n### Technologies Used\n\n- **Frontend**: Next.js, React, React Query, TailwindCSS\n- **Backend**: Node.js, Express\n- **Database**: MongoDB\n- **Authentication**: JSON Web Tokens (JWT), bcrypt\n- **State Management**: Redux\n- **Caching**: Redis\n- **Event Streaming**: Apache Kafka\n- **Payment Processing**: Stripe\n- **Testing**: Jest, Supertest\n- **Containerization**: Docker\n- **Orchestration**: Kubernetes\n- **Cloud**: Google Cloud\n- **Continuous Development**: Skaffold\n- **CI/CD**: GitHub Actions\n- **Deployment**: DigitalOcean\n\n\n### Microservices Architecture\nThe application is divided into several microservices, each responsible for a specific domain of the application:\n\n#### Auth Service\nHandles user registration, login, and authentication using JWTs. It ensures secure access to other services.\n\n#### Tickets Service\nManages the lifecycle of tickets, including creation, updates, and retrieval. It allows users to browse available sports event tickets.\n\n#### Orders Service\nProcesses orders by associating tickets with users and managing the order states (created, cancelled, completed).\n\n#### Payments Service\nIntegrates with payment gateways to handle transactions securely. Ensures payments are processed before completing an order.\n\n#### Expiration Service\nEnsures unpaid orders are cancelled after a certain period, freeing up tickets for other users.\n\n#### Kafka Service\nImplements event streaming to ensure real-time communication between services, facilitating a responsive and cohesive system.\n\n#### AI Recommendation Service\nUses AI to analyze user behavior and recommend the best tickets for each user based on their past activity.\n\n#### Common Service\nDeployed as a GitHub module for code reuse\n\n\n### Event-Driven Architecture\nThe platform utilizes an event-driven architecture with Apache Kafka to enable real-time communication and updates between microservices. This ensures that all parts of the system stay in sync and respond to events as they occur, providing a seamless and responsive user experience.\n\n### Server-Side Rendering\nNext.js is used for server-side rendering (SSR) to enhance performance and SEO. This ensures fast initial load times and better indexing by search engines.\n\n\n#### Installation\n\n### 1. Clone the Repository:\n\n```bash\ngit clone https://github.com/almoghindi/Sport-tickets.git\ncd Sport-tickets\n```\n\n### 2. Install Dependencies:\n\n```bash\ncd auth \u0026\u0026 npm install\ncd ../tickets \u0026\u0026 npm install\ncd ../orders \u0026\u0026 npm install\ncd ../payments \u0026\u0026 npm install\ncd ../expiration \u0026\u0026 npm install\ncd ../client \u0026\u0026 npm install\ncd ../common \u0026\u0026 npm install\n```\n\n### 3. Set Up Environment Variables:\nCreate a .env file in each service's root directory and configure the required environment variables.\n\n### 4. Start Development Servers:\n\n```bash\nnpm run dev\n```\n\n### 5. Run with Docker and Kubernetes:\nEnsure Docker and Kubernetes are installed and running. Use Skaffold to manage the development lifecycle:\n\n```bash\nskaffold dev\n```\n\n## Deplyoment\n\nThe project uses GitHub Actions for CI/CD, ensuring automated testing, building, and deployment to DigitalOcean.\n\n## Media\n#### Home Page:\nExperience the welcoming home page where users are greeted with vibrant visuals and a simple interface to explore various sports events.\n\n![Screenshot 2024-06-22 235031](https://github.com/almoghindi/Sport-tickets/assets/102804545/5d68cf17-f984-44cd-9d06-b2bced0cffd4)\n\n#### Tickets Page:\nBrowse through an extensive list of available tickets with detailed filters to narrow down choices based on date, price range, and category.\n\n![Screenshot 2024-06-26 162325](https://github.com/almoghindi/Sport-tickets/assets/102804545/25805887-0238-45a6-ac76-08be6d1c7c6b)\n\n\n#### Order Completed Page:\nSee the confirmation page that assures users their ticket purchases were successful and provides details of the completed order.\n\n![Screenshot 2024-06-23 001535](https://github.com/almoghindi/Sport-tickets/assets/102804545/64e756e6-c70c-4338-b228-33c0bc29240a)\n\n#### Demo Video:\n\nhttps://github.com/almoghindi/Sport-tickets/assets/102804545/47240b74-11e8-4871-9166-75b564801468\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falmoghindi%2Fsport-tickets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falmoghindi%2Fsport-tickets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falmoghindi%2Fsport-tickets/lists"}