{"id":19541964,"url":"https://github.com/sujeethy/subscription","last_synced_at":"2026-04-07T08:31:48.229Z","repository":{"id":253317733,"uuid":"839604801","full_name":"Sujeethy/Subscription","owner":"Sujeethy","description":"This repository contains a Subscription Management System built with a Flask backend and a React frontend. It is designed to manage customer subscriptions, generate revenue reports, and handle subscription extensions and terminations. The system is containerized using Docker and can be easily deployed.","archived":false,"fork":false,"pushed_at":"2024-08-22T12:34:34.000Z","size":81,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-20T03:46:36.435Z","etag":null,"topics":["docker","flask","mui","mui-material","python","reactjs","sql"],"latest_commit_sha":null,"homepage":"","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/Sujeethy.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-08-08T00:45:30.000Z","updated_at":"2024-09-01T22:30:57.000Z","dependencies_parsed_at":"2024-08-15T23:14:51.843Z","dependency_job_id":"6e955bac-d9ab-40a8-a5b8-08bec7771420","html_url":"https://github.com/Sujeethy/Subscription","commit_stats":null,"previous_names":["sujeethy/subscription"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Sujeethy/Subscription","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sujeethy%2FSubscription","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sujeethy%2FSubscription/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sujeethy%2FSubscription/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sujeethy%2FSubscription/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sujeethy","download_url":"https://codeload.github.com/Sujeethy/Subscription/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sujeethy%2FSubscription/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31506562,"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":["docker","flask","mui","mui-material","python","reactjs","sql"],"created_at":"2024-11-11T03:12:30.883Z","updated_at":"2026-04-07T08:31:48.195Z","avatar_url":"https://github.com/Sujeethy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Subscription Management System\n\nThis repository contains a **Subscription Management System** built with a **Flask** backend and a **React** frontend. It is designed to manage customer subscriptions, generate revenue reports, and handle subscription extensions and terminations. The system is containerized using Docker and can be easily deployed.\n\n#### Features\n\n1. **Customer Subscription Management**: \n   - Add, extend, and terminate customer subscriptions.\n   - View existing subscriptions and filter them based on customer, product, and dates.\n\n2. **Revenue Reporting**:\n   - Generate revenue reports based on subscription data.\n   - Filter reports by date ranges (e.g., last 1 month, last 3 months).\n\n3. **Dockerized Setup**:\n   - The application is containerized using Docker, with separate services for the frontend, backend, and MySQL database.\n\n4. **Technology Stack**:\n   - **Backend**: Flask, Flask-RESTful, Flask-MySQLdb.\n   - **Frontend**: React with Material UI components, Chart.js for graphical reports.\n   - **Database**: MySQL.\n   - **Containerization**: Docker and Docker Compose.\n\n#### Project Structure\n\n- **backend/**:\n  - `main.py`: Contains Flask routes for managing subscriptions, customers, products, and revenue reports.\n  - `requirements.txt`: Lists the dependencies for the Flask application.\n  - `xyz_enterprises.sql`: SQL file to initialize the database schema.\n\n- **frontend/**:\n  - `src/components/`: Contains React components for various UI elements such as `Navbar`, `Subscription`, and `RevenueReport`.\n  - `vite.config.js`: Configuration for the Vite build tool.\n\n- **docker-compose.yml**:\n  - Defines services for the frontend, backend, and MySQL database, including networking and volume configurations.\n\n#### How to Run\n\n1. **Clone the repository**:\n   ```\n   git clone https://github.com/Sujeethy/Subscription.git\n   cd Subscription\n   ```\n\n2. **Set up environment variables**:\n   - Create a `.env` file in the `backend` directory and define MySQL credentials.\n   - Set `MYSQL_HOST`, `MYSQL_USER`, `MYSQL_PASSWORD`, and `MYSQL_DB` accordingly.\n\n3. **Start the application**:\n   ```\n   docker-compose up --build\n   ```\n   - The frontend will be available at `http://localhost:5173`.\n   - The backend API will be running at `http://localhost:5000`.\n\n4. **Access the Database**:\n   - The MySQL database will be running on port `3306` and can be accessed using the credentials specified in the `.env` file.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsujeethy%2Fsubscription","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsujeethy%2Fsubscription","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsujeethy%2Fsubscription/lists"}