{"id":35252890,"url":"https://github.com/mrlonis/python-open-restaurant-django","last_synced_at":"2026-03-17T16:10:00.598Z","repository":{"id":164114807,"uuid":"612018037","full_name":"mrlonis/python-open-restaurant-django","owner":"mrlonis","description":"About Demo API, written in Python Django, with one route that takes a datetime string and returns a list of open restaurants, if any.","archived":false,"fork":false,"pushed_at":"2025-12-16T22:59:22.000Z","size":513,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-19T04:19:40.560Z","etag":null,"topics":["django","djangorestframework","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrlonis.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-03-10T02:42:13.000Z","updated_at":"2025-12-16T22:59:25.000Z","dependencies_parsed_at":"2024-02-12T05:34:05.236Z","dependency_job_id":"8ad3fecb-0816-4b4d-a406-8082d6b1bb9c","html_url":"https://github.com/mrlonis/python-open-restaurant-django","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mrlonis/python-open-restaurant-django","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrlonis%2Fpython-open-restaurant-django","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrlonis%2Fpython-open-restaurant-django/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrlonis%2Fpython-open-restaurant-django/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrlonis%2Fpython-open-restaurant-django/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrlonis","download_url":"https://codeload.github.com/mrlonis/python-open-restaurant-django/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrlonis%2Fpython-open-restaurant-django/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28124450,"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","status":"online","status_checked_at":"2025-12-30T02:00:05.476Z","response_time":64,"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","djangorestframework","postgresql","python"],"created_at":"2025-12-30T07:02:53.122Z","updated_at":"2025-12-30T07:04:08.219Z","avatar_url":"https://github.com/mrlonis.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# python-open-restaurant-django\n\nDemo API using Django with one route that takes a datetime string and returns open restaurants, if any.\n\nThe Django project was initialized using the command:\n\n```sh\ndjango-admin startproject project .\n```\n\nThe api application was created using the command:\n\n```sh\npython manage.py startapp api\n```\n\n## Table of Contents\n\n- [python-open-restaurant-django](#python-open-restaurant-django)\n  - [Table of Contents](#table-of-contents)\n  - [Pre-requisites](#pre-requisites)\n    - [.env File](#env-file)\n    - [Required Build Packages](#required-build-packages)\n    - [Docker](#docker)\n  - [Migrate the Database](#migrate-the-database)\n  - [Linting](#linting)\n  - [Testing](#testing)\n\n## Pre-requisites\n\n### .env File\n\nCreate a .env file in the root directory of your project based off of the `.env.sample` file.\n\n### Required Build Packages\n\n```shell\nsudo apt-get install gcc libpq-dev python3-dev\n```\n\n### Docker\n\nInstall Docker and run the following command to startup the database/api in Docker:\n\n```sh\ndocker compose up --build --pull postgresql --remove-orphans -V --wait\n```\n\n## Migrate the Database\n\n```shell\npoetry run python manage.py migrate\n```\n\n## Linting\n\nTo lint the project, run the following commands:\n\n```shell\npoetry run flake8 api project manage.py\npoetry run pylint api project manage.py\n```\n\n## Testing\n\nTo run the tests, be sure you have ran the [Docker Compose Command](#docker), then run the following command:\n\n```sh\npoetry run python manage.py test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrlonis%2Fpython-open-restaurant-django","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrlonis%2Fpython-open-restaurant-django","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrlonis%2Fpython-open-restaurant-django/lists"}