{"id":15192058,"url":"https://github.com/laststylebender14/crud-with-slice-db","last_synced_at":"2026-03-03T08:14:58.129Z","repository":{"id":226042256,"uuid":"767568560","full_name":"laststylebender14/crud-with-slice-db","owner":"laststylebender14","description":"Simple Crud Project with Slice db","archived":false,"fork":false,"pushed_at":"2024-03-08T14:51:13.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-11T02:18:07.806Z","etag":null,"topics":["docker","dockercompose","fastapi","huey","kubernetes","python","slicedb","taskqueue"],"latest_commit_sha":null,"homepage":"","language":"Python","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/laststylebender14.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-03-05T14:29:12.000Z","updated_at":"2024-03-05T14:53:21.000Z","dependencies_parsed_at":"2024-03-05T16:09:09.435Z","dependency_job_id":"e1b18f4f-bf20-4407-b330-650e353be150","html_url":"https://github.com/laststylebender14/crud-with-slice-db","commit_stats":null,"previous_names":["ranjitmahadik/crud-with-slice-db","laststylebender14/crud-with-slice-db"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laststylebender14%2Fcrud-with-slice-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laststylebender14%2Fcrud-with-slice-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laststylebender14%2Fcrud-with-slice-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laststylebender14%2Fcrud-with-slice-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laststylebender14","download_url":"https://codeload.github.com/laststylebender14/crud-with-slice-db/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241110794,"owners_count":19911397,"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":["docker","dockercompose","fastapi","huey","kubernetes","python","slicedb","taskqueue"],"created_at":"2024-09-27T21:04:25.382Z","updated_at":"2025-11-23T08:00:38.545Z","avatar_url":"https://github.com/laststylebender14.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Simple Crud Project \n\nA Simple Crud Project that uses Slice DB as main key value store for storing data and uses task queue huey for async processing.\n#### design document: https://app.eraser.io/workspace/SW3zVfU5dw1DggI0vqRO?origin=share\n\n### Features\n- Slice DB: Slice DB is an ultra-simple and fast, Python-based, in-memory key-value store that communicates using the RESP protocol.\n- Kubernetes Deployment: Utilizes Kubernetes for managing deployment, auto-scaling, and management of containerized applications.\n- FastAPI: Modern, fast web framework for building APIs with Python 3.7+ based on standard Python type hints.\n- Huey as a REDIS Queue: Lightweight task queue built on top of Redis, allows offloading time-consuming tasks to the background.\n\n## Getting Started\n\nTo run this project locally, you'll need:\n\n### Using Python\n\nYou'll need:\n1. **Python 3+**\n\n```\n$ git clone https://github.com/ranjitmahadik/crud-with-slice-db\n$ cd crud-with-slice-db\n$ pip3 install -r requirements.txt\n$ mv .example.env .env\n$ uvicorn main:app --reload\n```\n\n### Using Docker\n\nYou'll need:\n1.  **Docker**\n\n```\n$ git clone https://github.com/ranjitmahadik/crud-with-slice-db\n$ cd crud-with-slice-db\n$ mv .example.env .env\n$ docker compose up -d\n```\n\n### Using K8\n```\n$ git clone https://github.com/ranjitmahadik/crud-with-slice-db\n$ cd crud-with-slice-db\n$ cd deployment/\n$ kubectl apply -f .\n```\n\n### End Points\n\n1. Create Post:\n```\ncurl -X POST http://localhost:8000/api/v1/post \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"key\": \"your_key\", \"value\": \"your_value\", \"ttl\": 3600}'\n```\n2. Get Post:\n```\ncurl http://localhost:8000/api/v1/post/your_key\n```\n\n3. Update Post:\n```\ncurl -X PUT http://localhost:8000/api/v1/post \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"key\": \"your_key\", \"value\": \"updated_value\", \"ttl\": 7200}'\n```\n\n4. Delete Post:\n```\ncurl -X DELETE http://localhost:8000/api/v1/post/your_key\n```\n\n5. Add Post If Not Exists:\n```\ncurl -X POST http://localhost:8000/api/v1/post-if-not-exists/ \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"key\": \"your_key\", \"value\": \"your_value\", \"ttl\": 3600}'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaststylebender14%2Fcrud-with-slice-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaststylebender14%2Fcrud-with-slice-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaststylebender14%2Fcrud-with-slice-db/lists"}