{"id":24061333,"url":"https://github.com/susilnem/sample-boilerplate-drf","last_synced_at":"2026-02-27T20:39:00.102Z","repository":{"id":245391445,"uuid":"520845726","full_name":"susilnem/Sample-Boilerplate-drf","owner":"susilnem","description":"Django Rest Framework Sample Project Setup for TC interns","archived":false,"fork":false,"pushed_at":"2024-06-21T06:10:35.000Z","size":11,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-16T20:26:04.596Z","etag":null,"topics":["boilerplate","django","django-rest-framework","drf"],"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/susilnem.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":"2022-08-03T11:03:25.000Z","updated_at":"2024-07-07T07:06:02.000Z","dependencies_parsed_at":"2024-06-21T23:38:58.795Z","dependency_job_id":"45f18143-6f13-4cf4-9b8a-06cd0810922d","html_url":"https://github.com/susilnem/Sample-Boilerplate-drf","commit_stats":null,"previous_names":["susilnem/sample-boilerplate-drf"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/susilnem/Sample-Boilerplate-drf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/susilnem%2FSample-Boilerplate-drf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/susilnem%2FSample-Boilerplate-drf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/susilnem%2FSample-Boilerplate-drf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/susilnem%2FSample-Boilerplate-drf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/susilnem","download_url":"https://codeload.github.com/susilnem/Sample-Boilerplate-drf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/susilnem%2FSample-Boilerplate-drf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29912456,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T19:37:42.220Z","status":"ssl_error","status_checked_at":"2026-02-27T19:37:41.463Z","response_time":57,"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":["boilerplate","django","django-rest-framework","drf"],"created_at":"2025-01-09T07:19:48.671Z","updated_at":"2026-02-27T20:39:00.086Z","avatar_url":"https://github.com/susilnem.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Sample Boilerplate for Django Rest Framework\n\n## Overview\nDjango Rest Framework Project Setup Sample for Interns\n\n### Dependencies\n - Dependencies are managed inside the requirement folder.\n - Better use  [Poetry](https://python-poetry.org/) package\n\nTo manage dependencies, we recommend using [Poetry](https://python-poetry.org/) for Python package management:\n\n1. **Install Poetry:**\n   ```bash\n   curl -sSL https://install.python-poetry.org | python -\n   ```\n\n2. **Initialize Project with Poetry:**\n   ```bash\n   poetry init\n   ```\n\n3. **Add Dependencies to `pyproject.toml`:**\n   ```toml\n   [tool.poetry.dependencies]\n   python = \"^3.9\"\n   django = \"^3.2.7\"\n   djangorestframework = \"^3.12.4\"\n   ```\n\n4. **Install Dependencies:**\n   ```bash\n   poetry install\n   ```\n\n### Running Local Development Server\n\n1. **Set Up Virtual Environment:**\n   ```bash\n   python -m venv env\n   source env/bin/activate  # On Windows use `env\\Scripts\\activate`\n   ```\n\n2. **Install Packages and Dependencies:**\n   ```bash\n   pip install -r requirements/dev.txt\n   ```\n\n3. **Environment Variables:**\n   - Copy `sample.env.py` to `env.py` and configure necessary environment variables like database credentials, API keys, etc.\n\n4. **Initialize Database:**\n   ```bash\n   python manage.py migrate\n   ```\n\n5. **Run Development Server:**\n   ```bash\n   python manage.py runserver\n   ```\n\n6. **Access the Development Server:**\n   - Open your web browser and go to `http://127.0.0.1:8000/` to see the Django project running.\n\n### Project Structure\n\n```\nboilerplate-drf/\n│\n├── config/                    # Configuration files\n│   ├── __init__.py\n│   ├── settings.py                # Base settings\n│   └── urls.py                # Main URL configuration\n│\n├── apps/                      # Django apps directory\n│   ├── app1/                  # Example app 1\n│   │   ├── api/\n│   │   │   └── v1/            # API version 1\n│   │   │       ├── __init__.py\n│   │   │       ├── serializers.py  # Serializers for API v1\n│   │   │       ├── urls.py         # URL configuration for API v1\n│   │   │       └── views.py        # Views (API endpoints) for API v1\n│   │   ├── migrations/         # Database migrations for app1\n│   │   ├── __init__.py\n│   │   ├── admin.py\n│   │   ├── apps.py\n│   │   ├── models.py           # Models for app1\n│   │   ├── tests/              # Unit tests for app1\n│   │   │   ├── __init__.py\n│   │   │   └── test_views.py\n│   │   ├── urls.py             # Main URL configuration for app1 (include API URLs here if needed)\n│   │   └── views.py            # Views (non-API endpoints) for app1\n│   └── ...                     # Other apps can be structured similarly\n│\n│\n├── requirements/              # Requirements files\n│   ├── base.txt               # Base dependencies\n│   └── dev.txt                # Development dependencies\n│\n├── sample.env.py/             # Sample environment variables template\n│   \n├── env.py                     # Environment variables (not committed)\n│\n└── README.md                  # Project documentation\n\n```\n\n### Additional Resources\n\n- [Django Documentation](https://docs.djangoproject.com/en/stable/)\n- [Django Rest Framework Documentation](https://www.django-rest-framework.org/)\n- [Poetry Documentation](https://python-poetry.org/docs/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsusilnem%2Fsample-boilerplate-drf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsusilnem%2Fsample-boilerplate-drf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsusilnem%2Fsample-boilerplate-drf/lists"}