{"id":20774621,"url":"https://github.com/namikazebadri/starterkit-django","last_synced_at":"2026-04-28T04:03:23.665Z","repository":{"id":130153090,"uuid":"354719626","full_name":"namikazebadri/starterkit-django","owner":"namikazebadri","description":"Django project template with a lot of basic project must-have features, such as containerization and deployments to GCR, ECR, Dockerhub and regular old VM using Github Actions. Also Unit Test, Code Coverage, Static Analysis and Staged Flow (such as dev, staging, uat and production) are  part of this project template repository.","archived":false,"fork":false,"pushed_at":"2022-09-25T09:15:29.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T20:55:38.914Z","etag":null,"topics":["django","django-application","docker-image","dockerhub","project-template","python"],"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/namikazebadri.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-04-05T04:42:26.000Z","updated_at":"2023-08-19T03:45:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"d1950fd4-9efa-4990-9092-17ddb58d64ed","html_url":"https://github.com/namikazebadri/starterkit-django","commit_stats":null,"previous_names":["namikazebadri/starterkit-django"],"tags_count":12,"template":true,"template_full_name":null,"purl":"pkg:github/namikazebadri/starterkit-django","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/namikazebadri%2Fstarterkit-django","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/namikazebadri%2Fstarterkit-django/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/namikazebadri%2Fstarterkit-django/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/namikazebadri%2Fstarterkit-django/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/namikazebadri","download_url":"https://codeload.github.com/namikazebadri/starterkit-django/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/namikazebadri%2Fstarterkit-django/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32365519,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"online","status_checked_at":"2026-04-28T02:00:07.250Z","response_time":56,"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-application","docker-image","dockerhub","project-template","python"],"created_at":"2024-11-17T12:30:09.312Z","updated_at":"2026-04-28T04:03:23.642Z","avatar_url":"https://github.com/namikazebadri.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Django Project Template\n\nDjango project template with a lot of basic project must-have features, such as containerization and deployments to GCR, ECR, Dockerhub and regular old VM using Github Actions. Also Unit Test, Code Coverage, Static Analysis and Stages Flow (such as dev, staging, uat and production) are  part of this project template repository.\n\n## What is Inside This Template?\n\n## Development Stage\n\n### Requirements\n\n1. Python \u003e= 3.8.5\n2. Pip \u003e= 21.0.1\n\n### Installing Dependencies\n\n`pip install -r requirements.txt`\n\n### Setting Up Environment Variables\n\n`source envvars`\n\n### Creating Container for Database Server\n\nTo start new database server, run this command:\n\n`docker-compose up -d`\n\nCheck if database running __correctly__ by accessing database from command line or PGAdmin.\n\n### Migrating Database\n\nTo create migration scripts:\n\n`python manage.py makemigrations app`\n\nTo execute migrations:\n\n`python manage.py migrate app`\n\n### Running The Application\n\n`python manage.py runserver 0.0.0.0:8080`\n\n### Running Test Suite\n\nThis application using [pytest](https://pypi.org/project/pytest/) as the test framework and [pytest-django](https://pypi.org/project/pytest-django/) as integration tool with Django Framework. To run unit test simply run this command.\n\n`pytest -s`\n\n### Running Code Coverage\n\nThis application using [coverage](https://pypi.org/project/coverage/) as the code coverage tool and [pytest-cov](https://pypi.org/project/pytest-cov/) as integration tools with Pytest. To run code coverage simply run this command.\n\n`pytest --cov-report html --cov-report term --cov=app app/tests/`\n\n### Running Static Analysis\n\nTo run static analysis using flake8, run this command:\n\n`flake8 --config=.flake8 --count --statistics app/ core/`\n\n## Continues Integration\n\nYou can use __build-ci__ status checks in the repository settings to ensure continues integration is working correctly on target branch. This status checks come from __.github/workflows/onpush-ci.yml__.\n\n## Deployment Stage\n\nThis project template provide deployment using docker image. The deployment targets are GCR, ECR, Dockerhub or VM, you can see the workflows from this these files __.github/workflows/*-deployment.yml__.\n\n### Build Image\n\nTo build image run this command (__change the tag name \u0026 version with your preferred tag name \u0026 version__).\n\n`$ docker build . -t myorganization/myimage:1.0.0`\n\n### Running Container from Image\n\nTo create a container from the image, run this command (__change the tag name \u0026 version with your preferred tag name \u0026 version__).\n\n`$ docker run -d -p 8000:8000 --network=serviceNetwork --name django-app myorganization/myimage:1.0.0`\n\nThen you can access the app from the browser with this url: `http://127.0.0.1:8000`\n\n### Dockerhub image\n\nThis repository is proven by running build in Dockerhub, you can see the result [here](https://hub.docker.com/r/namikazebadri/django-app).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnamikazebadri%2Fstarterkit-django","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnamikazebadri%2Fstarterkit-django","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnamikazebadri%2Fstarterkit-django/lists"}