{"id":18463706,"url":"https://github.com/alvii147/chromatic","last_synced_at":"2026-04-13T22:31:28.750Z","repository":{"id":134303637,"uuid":"407964362","full_name":"alvii147/chromatic","owner":"alvii147","description":"Public image repository website, with authentication and facial detection","archived":false,"fork":false,"pushed_at":"2022-10-02T23:21:44.000Z","size":1985,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-28T16:55:53.046Z","etag":null,"topics":["django","opencv","shopify"],"latest_commit_sha":null,"homepage":"https://devpostman404.pythonanywhere.com/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alvii147.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2021-09-18T20:46:59.000Z","updated_at":"2022-05-10T03:39:05.000Z","dependencies_parsed_at":"2023-03-25T20:04:01.666Z","dependency_job_id":null,"html_url":"https://github.com/alvii147/chromatic","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alvii147/chromatic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvii147%2Fchromatic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvii147%2Fchromatic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvii147%2Fchromatic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvii147%2Fchromatic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alvii147","download_url":"https://codeload.github.com/alvii147/chromatic/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvii147%2Fchromatic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31773976,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"last_error":"SSL_read: 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":["django","opencv","shopify"],"created_at":"2024-11-06T09:07:43.919Z","updated_at":"2026-04-13T22:31:28.733Z","avatar_url":"https://github.com/alvii147.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003cimg alt=\"Chromatic Logo\" src=\"img/chromatic_logo.png\" width=\"400\"\u003e\n\n[![](https://img.shields.io/github/workflow/status/alvii147/chromatic/Django%20CI?label=Tests\u0026logo=github)](https://github.com/alvii147/chromatic/actions) ![](https://img.shields.io/badge/Coverage-82%25-aquamarine?logo=python) [![](https://img.shields.io/badge/Python%20Anywhere-Live%20Demo-37a7d7)](https://devpostman404.pythonanywhere.com/)\n\n\u003c/div\u003e\n\n# chromatic\n\n## Overview\n\n*chromatic* is a public image repository website. It allows users to authenticate themselves and upload images. *chromatic* also performs facial detection on uploaded images. This was a part of the **Shopify Fall 2022 Data Engineering Intern Challenge.**\n\nThis challenge was completed by building a stand-alone **Django** application. Try out the demo [here](https://devpostman404.pythonanywhere.com/).\n\n![Homepage](img/homepage_unauthenticated.png)\n\nIn order to upload images of your own, click *Register* on the top left to register for an account, then login to your created account. Once you're logged in, you should see the *Upload Image +* option on the top left, which will lead you to the image uploading page.\n\n![Upload Image](img/upload.png)\n\nClicking on an individual image will launch a modal that displays the picture, which includes a facial recognition feature built using **OpenCV** and Haar Cascade Classifiers.\n\n![Movie Theatre](img/movie_theatre.png)\n\n## Try it out locally\n\nThe instructions below are for running *chromatic* on a local machine.\n\n### Clone the repository\n\n```bash\ngit clone https://github.com/alvii147/chromatic.git\n```\n\n### Install dependencies\n\n```bash\npip3 install -r requirements.txt\n```\n\n### Set up environment variables\n\n```bash\nexport DJANGO_ENV_MODE=\"DEV\"\nexport SECRET_KEY=\"qwertyuiopasdfghjklzxcvbnm1234567890\"\n```\n\n### Run migrations\n\n```bash\ncd chromatic\npython3 manage.py migrate\n```\n\n### Run the server\n\n```bash\npython3 manage.py runserver\n```\n\nThe server should then be up at `http://localhost:8000`.\n\n## Testing\n\nCurrently *chromatic* is run through rigorous testing, including unit tests for Django URLs, views, as well as OpenCV functions, under Python 3.7, 3.8, and 3.9 environments. [This Github Actions CI script](.github/workflows/django.yml) is used for automated testing on Github. Currently **100% of tests are passing**, while **test coverage is 82%** (coverage is not perfect due to a few default Django files that are not covered in tests).\n\n### Running tests and coverage\n\n```bash\ncoverage run --source='.' manage.py test -v 2\ncoverage report\n```\n\n### Coverage Report\n\n```\nName                                       Stmts   Miss  Cover\n--------------------------------------------------------------\nchromatic/__init__.py                          0      0   100%\nchromatic/asgi.py                              4      4     0%\nchromatic/settings/__init__.py                 7      3    57%\nchromatic/settings/base.py                    24      0   100%\nchromatic/settings/dev.py                      3      0   100%\nchromatic/settings/prod.py                     3      3     0%\nchromatic/urls.py                              6      0   100%\nchromatic/wsgi.py                              4      4     0%\nchromatic_app/__init__.py                      0      0   100%\nchromatic_app/admin.py                         8      0   100%\nchromatic_app/apps.py                          4      0   100%\nchromatic_app/forms.py                         8      0   100%\nchromatic_app/migrations/0001_initial.py       7      0   100%\nchromatic_app/migrations/__init__.py           0      0   100%\nchromatic_app/models.py                       19      2    89%\nchromatic_app/tests/__init__.py                0      0   100%\nchromatic_app/tests/test_urls.py              19      0   100%\nchromatic_app/tests/test_utils.py             16      1    94%\nchromatic_app/tests/test_views.py             20      0   100%\nchromatic_app/urls.py                          4      0   100%\nchromatic_app/utils.py                        18      3    83%\nchromatic_app/views.py                        36     18    50%\nmanage.py                                     12      2    83%\n--------------------------------------------------------------\nTOTAL                                        222     40    82%\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falvii147%2Fchromatic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falvii147%2Fchromatic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falvii147%2Fchromatic/lists"}