{"id":25165910,"url":"https://github.com/lokrip/business-application-backend","last_synced_at":"2026-04-14T15:31:42.585Z","repository":{"id":271816499,"uuid":"914352394","full_name":"Lokrip/business-application-backend","owner":"Lokrip","description":"This is a backend business application designed to manage clients, subscription plans, and services. It allows businesses to subscribe to different service plans and manage their subscriptions efficiently","archived":false,"fork":false,"pushed_at":"2025-01-10T03:25:29.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-13T21:32:09.030Z","etag":null,"topics":["celery","django","django-cache","django-rest-framework","docker","python","redis"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lokrip.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-09T12:33:40.000Z","updated_at":"2025-01-22T09:43:24.000Z","dependencies_parsed_at":"2025-01-10T04:23:55.150Z","dependency_job_id":"64536039-0234-401b-a266-64540c251d6b","html_url":"https://github.com/Lokrip/business-application-backend","commit_stats":null,"previous_names":["lokrip/business-application-backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Lokrip/business-application-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lokrip%2Fbusiness-application-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lokrip%2Fbusiness-application-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lokrip%2Fbusiness-application-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lokrip%2Fbusiness-application-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lokrip","download_url":"https://codeload.github.com/Lokrip/business-application-backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lokrip%2Fbusiness-application-backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31803195,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T11:13:53.975Z","status":"ssl_error","status_checked_at":"2026-04-14T11:13:53.299Z","response_time":153,"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":["celery","django","django-cache","django-rest-framework","docker","python","redis"],"created_at":"2025-02-09T05:47:14.330Z","updated_at":"2026-04-14T15:31:42.569Z","avatar_url":"https://github.com/Lokrip.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Business Application Backend\n\n## Overview\nThis is a backend business application designed to manage clients, subscription plans, and services. It allows businesses to subscribe to different service plans and manage their subscriptions efficiently.\n\n### Features\n- **Client Management**: Clients are associated with their users and can store their company details.\n- **Service Management**: Services can be created and updated with pricing details.\n- **Subscription Plans**: Plans are categorized (e.g., full, student, discount) and associated with clients.\n- **Dynamic Price Adjustment**: Subscription prices and comments are recalculated and updated upon changes to service prices or plan discounts.\n- **Efficient Query Execution**: The application is designed to execute only necessary queries, with indexes applied to critical fields for faster lookups.\n- **Cache Management**: Automatic cache invalidation when subscriptions are deleted.\n\n## Technologies Used\n- **Django**: The web framework for developing the backend.\n- **Django REST Framework**: For building RESTful APIs.\n- **Celery**: For handling asynchronous tasks like updating prices and comments.\n- **Docker**: For containerizing the application and ensuring it runs consistently across environments.\n- **Redis**: Used as a broker for Celery tasks.\n- **Django Cachalot**: For improving database query performance with caching.\n\n## Installation\n\n### Prerequisites\n- Python 3.x\n- Docker and Docker Compose (optional but recommended for containerization)\n\n### Steps to Run the Project\n\n1. **Clone the repository**:\n    ```bash\n    git clone https://github.com/Lokrip/Business-Application-Backend.git\n    ```\n\n1. **Build Docker containers**:\n    ```bash\n    docker-compose up --build\n    ```\n\n4. **Set up environment variables**:\n    You may need to configure environment variables for your Django settings, Redis, and other services.  Create a .env file in the root directory of your project and define the following variables\n    \n    docker-compose.yml\n    ```bash\n    DB_HOST=database-1\n    DB_NAME=dbname\n    DB_USER=dbuser\n    DB_PASS=pass\n    ```\n\n5. **Apply migrations**:\n    ```bash\n    docker-compose run --rm web-app sh -c \"python manage.py migrate\"\n    ```\n\n6. **Create a superuser** (for accessing the Django admin):\n    ```bash\n    docker-compose run --rm web-app sh -c \"python manage.py createsuperuser\"\n    ```\n\n3. **Access the application**:\n   Navigate to `http://127.0.0.1:8000/` for the web application.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flokrip%2Fbusiness-application-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flokrip%2Fbusiness-application-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flokrip%2Fbusiness-application-backend/lists"}