{"id":23522108,"url":"https://github.com/ruslan-korneev/drf-postgres-backend-template","last_synced_at":"2025-05-14T03:34:42.212Z","repository":{"id":164502622,"uuid":"611327883","full_name":"ruslan-korneev/drf-postgres-backend-template","owner":"ruslan-korneev","description":"The template repo for backend on django, drf, postgres, redis. With CI: Linter, Pytest, Migrations-Check","archived":false,"fork":false,"pushed_at":"2023-09-26T21:13:33.000Z","size":89,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-15T11:46:10.586Z","etag":null,"topics":[],"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/ruslan-korneev.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}},"created_at":"2023-03-08T15:45:10.000Z","updated_at":"2023-03-08T17:11:44.000Z","dependencies_parsed_at":"2023-07-23T02:16:47.717Z","dependency_job_id":null,"html_url":"https://github.com/ruslan-korneev/drf-postgres-backend-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruslan-korneev%2Fdrf-postgres-backend-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruslan-korneev%2Fdrf-postgres-backend-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruslan-korneev%2Fdrf-postgres-backend-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruslan-korneev%2Fdrf-postgres-backend-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruslan-korneev","download_url":"https://codeload.github.com/ruslan-korneev/drf-postgres-backend-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239212553,"owners_count":19600830,"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-12-25T17:15:22.069Z","updated_at":"2025-02-16T23:44:58.217Z","avatar_url":"https://github.com/ruslan-korneev.png","language":"Python","readme":"# Django REST with Postgres Template\n\n# Installation and Running\n\n## Using docker compose\n\n```bash\n# change variables values in .env files if you need\ncp .env_samples/env.sample .env\ncp .env_samples/db.env.sample db.env\ncp .env_samples/redis.env.sample redis.env\n\ndocker compose up -d\n```\n\n## Without docker compose for development\n\n```zsh\npython -m venv .venv\n. .venv/bin/activate\n\n# run postgres and redis, and create .env file\ncp .env_samples/env.sample .env  # change variables values in .env file\n\npoetry install\npre-commit install\ndj migrate\ndj runserver\n```\n\n## Project's Structure\n\n```\ndocker-compose.yaml\nDockerfile\nentrypoint.sh\nenv_sample\npoetry.lock\npyproject.toml\nREADME.md\nsrc\n├── manage.py\n├── urls.py\n└── wsgi.py\n├── settings\n│   ├── __init__.py\n│   ├── local.py\n│   ├── spectacular.py\n│   └── test.py\n├── apps\n│   ├── __init__.py\n│   ├── your_app\n│   │   ├── __init__.py\n│   │   ├── models.py\n│   └── └── ...\n└── conftest.py\n```\n\n## Django Settings\n\nbasic django settings located at `src/settings/__init__.py`\n\n## Your Applications\n\nyou can collect you application modules inside src.apps package,\nto include app:\n\n```python\nINSTALLED_APPS = [\n    # django's\n    ...,\n    # third party\n    ...,\n    # your apps\n    \"src.apps.my_app\", # if app name is users - then use here \"src.apps.users\"\n]\n```\n\n# Continuous Integration\n\n1. Tests: replace `echo` command with arguments to `pytest`. Pytest's settings are in [pyproject.toml](pyproject.toml)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruslan-korneev%2Fdrf-postgres-backend-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruslan-korneev%2Fdrf-postgres-backend-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruslan-korneev%2Fdrf-postgres-backend-template/lists"}