{"id":21094412,"url":"https://github.com/domicoder/kitboxhealth-backend","last_synced_at":"2025-10-12T16:12:53.915Z","repository":{"id":253111994,"uuid":"842183832","full_name":"domicoder/kitboxhealth-backend","owner":"domicoder","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-15T00:11:15.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T01:41:49.651Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/domicoder.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-13T21:00:14.000Z","updated_at":"2024-08-15T00:11:18.000Z","dependencies_parsed_at":"2024-11-20T03:31:07.391Z","dependency_job_id":"7c9e7731-500e-42c6-823d-30f2fd92ed13","html_url":"https://github.com/domicoder/kitboxhealth-backend","commit_stats":null,"previous_names":["domicoder/kitboxhealth-backend"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domicoder%2Fkitboxhealth-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domicoder%2Fkitboxhealth-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domicoder%2Fkitboxhealth-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domicoder%2Fkitboxhealth-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/domicoder","download_url":"https://codeload.github.com/domicoder/kitboxhealth-backend/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243538138,"owners_count":20307104,"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":[],"created_at":"2024-11-19T22:17:27.117Z","updated_at":"2025-10-12T16:12:53.814Z","avatar_url":"https://github.com/domicoder.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Init API for this project\n\n`$ make clean`\n\n`$ make migrations`\n\n`$ make migrations-appointments`\n\n`$ make migrate`\n\n`$ make superuser`\n\n`$ make run`\n\n# Migrate command\n\n```\nmake migrate\n```\n\n# migrations command\n\n```\nmake migrations\n```\n\nor (`appointments` is an app for this project)\n\n```\nmake migrations-appointments\n```\n\n## Create superuser\n\n```\nmake superuser\n```\n\n# If you already setup project, run\n\n```\nmake run\n```\n\n## Testing our API (with CURL command-line)\n\n```bash\n# Login\nhttp POST http://localhost:8000/api/auth/ username=\"admin\" password=\"root\"\n\n{\n    \"access\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzIzNjAxMTMzLCJpYXQiOjE3MjM2MDA4MzMsImp0aSI6IjNmMjliZGNkNjM2ZDQ5NTE4ZWU0Njk2MDQ4YzFkYTJmIiwidXNlcl9pZCI6MX0.O6Gi_YPV-jObrlfMFdQDU9KT4pKN0XwUBw_AuwoFAHg\",\n    \"refresh\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTcyMzY4NzIzMywiaWF0IjoxNzIzNjAwODMzLCJqdGkiOiI0MDU2NWI3ZTUxOWI0MWI3YjFlZGQ5OWEwMDAyMTFkNyIsInVzZXJfaWQiOjF9.LxjvOaOrRWtlHqP8iBTGcw7niDA1iTH12eE6WBqOWEM\"\n}\n```\n\n```bash\n~$ curl -u admin -H 'Accept: application/json; indent=4' http://127.0.0.1:8000/api/doctors/\n\n```\n\n# if you have migrations in appointments module\n\n## migrations appointments\n\n```\n\nmake migrations-appointments\n\n```\n\n`for future update Makefile`\n\n```\n\nmake migrations MIGRATION_NAME=appointments\n\n```\n\n## migrate appointments\n\n```\n\nmake migrate-appointments\n\n```\n\n```\n\nmake migrate MIGRATION_NAME=appointments\n\n```\n\n# Using HTTPIE\n\nGet a list of doctors\n\n```\n\nhttp http://127.0.0.1:8000/api/doctors/\n\n```\n\nGet a snippet with `id` = 2\n\n```\n\nhttp http://127.0.0.1:8000/api/doctors/2/\n\n```\n\n# Postgres DB\n\nCreate DB\n\n```\n\npsql -U postgres\n\n```\n\n```\n\nCREATE DATABASE kitboxhealth_backend_db;\n\n```\n\n```\n\nCREATE USER admin WITH PASSWORD 'SXCiKvMy8#4\u0026_W\u0026nNT5kGX\u0026Q2EmUKmx#nu6rDT$djdD4dHfPmnW6JFXx8dqTKhPoVfa7ZZnLmNViC4kp34UpCYg2_@YXEnqB84##fDFxmVG';\n\n```\n\n```\n\nGRANT ALL PRIVILEGES ON DATABASE kitboxhealth_backend_db TO admin;\n\n```\n\n```\n\nGRANT ALL PRIVILEGES ON SCHEMA public TO admin;\n\n```\n\n```\n\nALTER USER admin WITH SUPERUSER;\n\n```\n\n# API Documentation\n\nHere the [Swagger Documentation](http://127.0.0.1:8000/api/doc/swagger/)\n\nHere the [Redoc Documentation](http://127.0.0.1:8000/api/doc/redoc/)\n\n# Deployment Essentials to Heroku\n\nRequirements.txt: Create a file listing all your dependencies:\n\n```\n\npip freeze \u003e requirements.txt\n\n```\n\nCreate a Procfile in your project root and add:\n\n```\n\nweb: gunicorn kitboxhealth_backend.wsgi --log-file -\n\n```\n\nRuntime.txt (Optional): Specify your Python version:\n\n```\n\npython-3.10.14\n\n```\n\n```\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdomicoder%2Fkitboxhealth-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdomicoder%2Fkitboxhealth-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdomicoder%2Fkitboxhealth-backend/lists"}