{"id":21769178,"url":"https://github.com/scanf-s/django-restapi-project","last_synced_at":"2026-04-13T15:32:05.582Z","repository":{"id":244154083,"uuid":"814423568","full_name":"Scanf-s/Django-restapi-project","owner":"Scanf-s","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-18T07:41:43.000Z","size":119,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T06:12:09.135Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Scanf-s.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":"2024-06-13T01:50:37.000Z","updated_at":"2025-01-19T08:05:22.000Z","dependencies_parsed_at":"2024-06-15T05:24:10.346Z","dependency_job_id":null,"html_url":"https://github.com/Scanf-s/Django-restapi-project","commit_stats":null,"previous_names":["scanf-s/django-youtube-restapi-project","scanf-s/django-restapi-project"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Scanf-s/Django-restapi-project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scanf-s%2FDjango-restapi-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scanf-s%2FDjango-restapi-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scanf-s%2FDjango-restapi-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scanf-s%2FDjango-restapi-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Scanf-s","download_url":"https://codeload.github.com/Scanf-s/Django-restapi-project/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scanf-s%2FDjango-restapi-project/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31759307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","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":[],"created_at":"2024-11-26T14:07:57.275Z","updated_at":"2026-04-13T15:32:05.559Z","avatar_url":"https://github.com/Scanf-s.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Django Practice Project\n\n- Basic Django Modeling, API design, and implementation using Django\n- This project demonstrates basic CI/CD practices.\n\n\n# Technology Stack\n- Python: The programming language used for developing the application.\n- Django: The web framework used for building the backend of the application.\n- Django Rest Framework (DRF): An extension of Django for building RESTful APIs.\n- PostgreSQL: The database system used for storing application data.\n- Docker: A platform for developing, shipping, and running applications in containers.\n- Nginx: A web server used as a reverse proxy to serve the Django application.\n- Amazon EC2: The cloud computing service used to deploy and run the application.\n\n## Project Structure\n```bash\n.\n├── Dockerfile\n├── README.md\n├── app\n│   ├── __init__.py\n│   ├── __pycache__\n│   │   └── __init__.cpython-312.pyc\n│   ├── chat\n│   │   ├── __init__.py\n│   │   ├── __pycache__\n│   │   ├── admin.py\n│   │   ├── apps.py\n│   │   ├── consumers.py\n│   │   ├── migrations\n│   │   ├── models.py\n│   │   ├── routing.py\n│   │   ├── templates\n│   │   ├── tests.py\n│   │   ├── urls.py\n│   │   └── views.py\n│   ├── comments\n│   │   ├── __init__.py\n│   │   ├── __pycache__\n│   │   ├── admin.py\n│   │   ├── apps.py\n│   │   ├── migrations\n│   │   ├── models.py\n│   │   ├── serializers.py\n│   │   ├── tests.py\n│   │   └── views.py\n│   ├── common\n│   │   ├── __init__.py\n│   │   ├── __pycache__\n│   │   ├── admin.py\n│   │   ├── apps.py\n│   │   ├── migrations\n│   │   ├── models.py\n│   │   ├── tests.py\n│   │   └── views.py\n│   ├── config\n│   │   ├── __init__.py\n│   │   ├── __pycache__\n│   │   ├── asgi.py\n│   │   ├── settings.py\n│   │   ├── test.py\n│   │   ├── urls.py\n│   │   └── wsgi.py\n│   ├── core\n│   │   ├── __init__.py\n│   │   ├── __pycache__\n│   │   ├── admin.py\n│   │   ├── apps.py\n│   │   ├── management\n│   │   ├── migrations\n│   │   ├── models.py\n│   │   ├── tests.py\n│   │   └── views.py\n│   ├── db.sqlite3\n│   ├── manage.py\n│   ├── reactions\n│   │   ├── __init__.py\n│   │   ├── __pycache__\n│   │   ├── admin.py\n│   │   ├── apps.py\n│   │   ├── migrations\n│   │   ├── models.py\n│   │   ├── tests.py\n│   │   └── views.py\n│   ├── static\n│   ├── storage\n│   ├── subscriptions\n│   │   ├── __init__.py\n│   │   ├── __pycache__\n│   │   ├── admin.py\n│   │   ├── apps.py\n│   │   ├── migrations\n│   │   ├── models.py\n│   │   ├── serializers.py\n│   │   ├── tests.py\n│   │   ├── urls.py\n│   │   └── views.py\n│   ├── users\n│   │   ├── __init__.py\n│   │   ├── __pycache__\n│   │   ├── admin.py\n│   │   ├── apps.py\n│   │   ├── migrations\n│   │   ├── models.py\n│   │   ├── serializers.py\n│   │   ├── tests.py\n│   │   └── views.py\n│   └── videos\n│       ├── __init__.py\n│       ├── __pycache__\n│       ├── admin.py\n│       ├── apps.py\n│       ├── migrations\n│       ├── models.py\n│       ├── serializers.py\n│       ├── tests.py\n│       ├── urls.py\n│       └── views.py\n├── data\n│   └── db  [error opening dir]\n├── docker-compose-deploy.yml\n├── docker-compose.yml\n├── proxy\n│   ├── Dockerfile\n│   ├── default.conf.tpl\n│   ├── run.sh\n│   └── uwsgi_params\n├── requirements.dev.txt\n├── requirements.txt\n└── scripts\n    └── run.sh\n```\n\n## How to Install\n\n### 1. Clone the Project\n\n```bash\ngit clone \u003crepository-url\u003e\ncd \u003crepository-directory\u003e\n```\n\n### 2. Create .env File\n\nCreate a `.env` file in the project root directory:\n\n```bash\nvim .env\n```\n\n### 3. Populate the .env File\n\nThe `.env` file must contain the following environment variables. Note that since we are using a Docker Compose setup for the database, actual database server details are not required.\n\n```env\nDOCKER_ACCESS_TOKEN=YOURDOCKERACCESSTOKEN  # (Optional)\nDB_NAME=youtube\nDB_USER=test\nDB_PASS=123123\nDJANGO_SECRET_KEY=test\nDJANGO_ALLOWED_HOSTS=YOUR_EC2_DOMAIN_NAME\n```\n\n### 4. Start Docker Compose\n\nEnsure Docker is installed on your EC2 instance. Then, build and start the Docker containers:\n\n```bash\ndocker-compose -f docker-compose-deploy.yml up -d --build\n```\n\n### 5. Create Superuser\n\nRun the following command to create a Django superuser:\n\n```bash\ndocker-compose -f docker-compose-deploy.yml run --rm app sh -c 'python manage.py createsuperuser'\n```\n\n### 6. Access the Web Application\n\nConnect to your EC2 instance using your web browser:\n\n```\nhttp://your-ec2-instance/admin\nhttp://your-ec2-instance/api/v1/schema/swagger-ui\nhttp://your-ec2-instance/chat\n```\n\nLog in with the superuser account you created.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscanf-s%2Fdjango-restapi-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscanf-s%2Fdjango-restapi-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscanf-s%2Fdjango-restapi-project/lists"}