{"id":19054852,"url":"https://github.com/dominic248/django-docker","last_synced_at":"2026-05-01T21:03:25.156Z","repository":{"id":139717546,"uuid":"310680927","full_name":"dominic248/Django-Docker","owner":"dominic248","description":"Tech-Stack: Django, Django-REST-Framework, Docker, Firebase-db Hosted Django API (with Docker and Heroku). Face Training API with firebase-db, Face Recognition API with firebase-db, Image Color Transfer API, Sudoku Solver API, Sudoku Extractor API","archived":false,"fork":false,"pushed_at":"2025-06-25T16:18:22.000Z","size":794,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-11T21:06:06.505Z","etag":null,"topics":["django","django-rest-framework","docker"],"latest_commit_sha":null,"homepage":"https://gist.github.com/dms24081999/da8ff7be44b6eb38550668cf0df563e0","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/dominic248.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":"2020-11-06T18:52:58.000Z","updated_at":"2025-06-25T16:18:26.000Z","dependencies_parsed_at":"2024-05-16T00:18:19.851Z","dependency_job_id":"cdc6ea2c-1ba7-4827-8d85-4cc02eee6a3e","html_url":"https://github.com/dominic248/Django-Docker","commit_stats":null,"previous_names":["dominic-m-silveira/django-docker","dominic248/django-docker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dominic248/Django-Docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dominic248%2FDjango-Docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dominic248%2FDjango-Docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dominic248%2FDjango-Docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dominic248%2FDjango-Docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dominic248","download_url":"https://codeload.github.com/dominic248/Django-Docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dominic248%2FDjango-Docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32512670,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["django","django-rest-framework","docker"],"created_at":"2024-11-08T23:39:59.442Z","updated_at":"2026-05-01T21:03:25.109Z","avatar_url":"https://github.com/dominic248.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- GNZ9THYZLF6EUZCH6INAKTTG7THGMBFD --\u003e\n[![Sponsored by GitAds](https://gitads.dev/v1/ad-serve?source=dominic248/django-docker@github)](https://gitads.dev/v1/ad-track?source=dominic248/django-docker@github)\n\n---\n\n# Django in Docker\n## Docker file for Django with OpenCV-4 and dlib\n### Create Docker Image\n```\ndocker build -t \u003ccontainer-name\u003e -f Dockerfile .\n```\n### Run Docker Image\n```\ndocker run -it -p 8888:8888 \u003ccontainer-name\u003e\n```\n\n---\n\n## Setting up Django API Project for Face Recognition (first time only)\n```\nvirtualenv -p python3.6 env\nsource ./env/bin/activate\nsudo apt-get install cmake\npip install -r requirements.txt\n```\n\n---\n\n## Running the Django API Project for Face Recognition\n```\nsource ./env/bin/activate\npython src/manage.py runserver\n```\n\n---\n\n## Creating a public server for Django API project\nDownload [ngrok](https://ngrok.com/) and extract files on your PC and export the path to ngrok file to the System Environment PATH variable and run\n```\nngrok http 8000\n```\nYou'll get a link to access the Django API Project outside the home network.\n\n---\n\n## API endpoints: https://delta24-mini-django-api-v1.herokuapp.com/\n\u003cdetails\u003e\n    \u003csummary\u003e\u003cstrong\u003eNOTE\u003c/strong\u003e\u003c/summary\u003e\n    \u003cblockquote\u003e\n    \u003col\u003e\n        \u003cli\u003eUse 100x100 image dimension on these endpoints to avoid memory leak, due to large numpy array. (For face training and face recognition API's)\u003c/li\u003e\n        \u003cli\u003eServer sleeps after 30 minutes of inactivity and will take time to restart on new requests after 30 minutes of inactivity.\u003c/li\u003e\n    \u003c/ol\u003e\n    \u003c/blockquote\u003e\n\u003c/details\u003e\n\n### **Face Training API:**\n\u003e **API endpoint:** ```/face_detection/train/firebase/``` \u003cbr\u003e\n\u003e **Method:** POST \u003cbr\u003e\n\u003e **Parameters:**\u003cbr\u003e\n\u003e 1. **```image```**\u003cbr\u003e\n\u003e **Type:** Image\u003cbr\u003e\n\u003e **Alternative:** ```url``` (Image URL)\u003cbr\u003e\n\u003e **Description:** Single image file with 1 person in image.\n\u003e 2. **```name```**\u003cbr\u003e\n\u003e **Type:** String\u003cbr\u003e\n\u003e **Description:** Name of the person.\n\u003e 3. **```resume```** (optional)\u003cbr\u003e\n\u003e **Type:** Boolean\u003cbr\u003e\n\u003e **Description:** Resume training or overwrite all previous trainings.\n\n### **Face Recognition API:**\n\u003e **API endpoint:** ```/face_detection/detect/firebase/```\u003cbr\u003e\n\u003e **Method:** POST \u003cbr\u003e\n\u003e **Parameters:**\u003cbr\u003e\n\u003e 1. **```image```**\u003cbr\u003e\n\u003e **Type:** Image\u003cbr\u003e\n\u003e **Alternative:** ```url``` (Image URL)\u003cbr\u003e\n\u003e **Description:** Single image file with 1 person in image.\n\n### **Color Transfer API:**\n\u003e **API endpoint:** ```/colortransfer/```\u003cbr\u003e\n\u003e **Method:** POST \u003cbr\u003e\n\u003e **Parameters:**\u003cbr\u003e\n\u003e 1. **```source_url```**\u003cbr\u003e\n\u003e **Type:** Image\u003cbr\u003e\n\u003e **Alternative:** ```source_url``` (Image URL)\u003cbr\u003e\n\u003e **Description:** Single image file or URL of image.\n\u003e 2. **```target_image```**\u003cbr\u003e\n\u003e **Type:** Image\u003cbr\u003e\n\u003e **Alternative:** ```target_url``` (Image URL)\u003cbr\u003e\n\u003e **Description:** Single image file or URL of image.\n\u003e 3. **```json```**\u003cbr\u003e\n\u003e **Type:** Boolean\u003cbr\u003e\n\u003e **Description:** To get image as Base64 URL set it as ```true``` and for Image response set it as ```false```.\n\n### **Sudoku Solver API:**\n\u003e **API endpoint:** ```/sudoku/solver/```\u003cbr\u003e\n\u003e **Method:** POST \u003cbr\u003e\n\u003e **Parameters:**\u003cbr\u003e\n\u003e 1. **```sudoku```**\u003cbr\u003e\n\u003e **Type:** 2D-Array/List\u003cbr\u003e\n\u003e **Description:** 2D-Array/List, with blank cells of sudoku filled with 0.\n\n### **Sudoku Extractor API:**\n\u003e **API endpoint:** ```/sudoku/extractor/```\u003cbr\u003e\n\u003e **Method:** POST \u003cbr\u003e\n\u003e **Parameters:**\u003cbr\u003e\n\u003e 1. **```image```**\u003cbr\u003e\n\u003e **Type:** Image\u003cbr\u003e\n\u003e **Alternative:** ```url``` (Image URL)\u003cbr\u003e\n\u003e **Description:** Single image file with a cropped sudoku puzzle.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdominic248%2Fdjango-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdominic248%2Fdjango-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdominic248%2Fdjango-docker/lists"}