{"id":22517874,"url":"https://github.com/fandredev/django-api-rest","last_synced_at":"2026-04-17T11:33:40.482Z","repository":{"id":240444056,"uuid":"802611702","full_name":"fandredev/django-api-rest","owner":"fandredev","description":"Basic API rest from students, courses and Matriculations using Python and Django Rest Framework","archived":false,"fork":false,"pushed_at":"2024-05-22T14:37:28.000Z","size":56,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-22T16:34:12.679Z","etag":null,"topics":["alura","black","django","drf","postgresql","python"],"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/fandredev.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-05-18T19:24:52.000Z","updated_at":"2024-07-12T00:31:14.020Z","dependencies_parsed_at":"2024-05-18T23:22:02.801Z","dependency_job_id":"39a83788-1bdd-4e52-b970-cdf63b055af8","html_url":"https://github.com/fandredev/django-api-rest","commit_stats":null,"previous_names":["fandredev/django-api-rest"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fandredev/django-api-rest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fandredev%2Fdjango-api-rest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fandredev%2Fdjango-api-rest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fandredev%2Fdjango-api-rest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fandredev%2Fdjango-api-rest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fandredev","download_url":"https://codeload.github.com/fandredev/django-api-rest/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fandredev%2Fdjango-api-rest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31927969,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T10:35:34.458Z","status":"ssl_error","status_checked_at":"2026-04-17T10:35:09.472Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["alura","black","django","drf","postgresql","python"],"created_at":"2024-12-07T04:12:59.554Z","updated_at":"2026-04-17T11:33:40.464Z","avatar_url":"https://github.com/fandredev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Stack used\n\n\u003cimg src=\"https://skillicons.dev/icons?i=python,django,githubactions,postgresql\u0026theme=dark\" /\u003e\n\n\n**Lint:** Black\n\n**CI/CD:** Github Actions\n\n## Authors\n- [@fandredev](https://www.linkedin.com/in/devfandre/)\n- [Alura](https://cursos.alura.com.br/formacao-django-rest)\n\n\u003cbr\u003e\n\n# Installation:\n## First, clone this repository.\n```bash\ngit clone git@github.com:fandredev/django-api-rest.git\n```\n\n## Create virtual environment with Python\n\n```bash\npython -m venv venv\n```\n## OR\n```bash\npython3 -m venv venv\n```\n\n## Activate the virtual environment\n\n```bash\nsource venv/bin/activate\n```\n\n## Install dependencies using pip\n```bash\npip install -r requirements.txt\n```\n\n- Look the .env.example file to change your informations from PostgreSQL database. \nA database must be created using PostgreSQL manually and your server needs be a running in other terminal.\n\nIn example, i use asdf to instance postgres in my machine. (https://asdf-vm.com/)\n\n![image](https://github.com/fandredev/django-api-rest/assets/49297012/ff27b012-8189-4410-819b-520301a7f4ce)\n![image](https://github.com/fandredev/django-api-rest/assets/49297012/fde61b22-bc75-4b82-8aae-f7153c8dd200)\n\n\n\n## Run migrations to database\n```bash\npython manage.py migrate\n```\n\n## Create a superuser\n```bash\npython manage.py createsuperuser\n```\n    \n## Run development server\n```bash\npython manage.py runserver\n```\n- or using ```launch.json```  file (if you use vscode)\n\n## Run tests\n```bash\npython manage.py test\n```\n\n## Open Django Admin\n\u003ch4\u003e\nIn another tab, open browser and put http://localhost:8000/control in URL browser. Log in with your superuser\u003c/h4\u003e\n\u003cbr\u003e\n\n## OPTIONAL (Populate your database using faker data)\n\n```\npython populate_students.py \u0026\u0026 python populate_courses.py\n``` \n\n## Use collection\n\u003ch4\u003eUse DRF.postman_collection.json file to use Django Rest Framework routes\u003c/h4\u003e\n\n![Screenshot from 2024-05-18 17-58-06](https://github.com/fandredev/django-api-rest/assets/49297012/6d51ea14-f39c-48fa-9602-de3bbf994eb9)\n\n\n- Pass, the user and password authorization to using routes (super/password that were created with ```python manage.py createsuperuser```)\n\u003cbr\u003e\n\n![image](https://github.com/fandredev/django-api-rest/assets/49297012/0fa811c5-020d-44a9-a7c9-3351420c3beb)\n\n- by default, the answers will come in .xml; Change this using 'Accept' header with 'application/json' value.\n![Screenshot from 2024-05-22 19-12-41](https://github.com/fandredev/django-api-rest/assets/49297012/69969618-9888-4876-be17-40316acdf48f)\n\n- Note: to use students routes v2 use, http://localhost:8000/students?version=v2\n\u003cbr\u003e\n\n\n## Feedback\n\nIf you have any feedback, please let us know via profissionalf.andre@gmail.com\n\n## Referencies\n\n - [Django documentation](https://docs.djangoproject.com/en/5.0/)\n - [Python](https://www.python.org/)\n - [Black formatter](https://black.readthedocs.io/en/stable/the_black_code_style/index.html)\n - [Alura Training](https://cursos.alura.com.br/formacao-django-rest)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffandredev%2Fdjango-api-rest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffandredev%2Fdjango-api-rest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffandredev%2Fdjango-api-rest/lists"}