{"id":16542586,"url":"https://github.com/jordaneremieff/aeroplane","last_synced_at":"2025-09-30T03:32:05.776Z","repository":{"id":89251369,"uuid":"354257861","full_name":"jordaneremieff/aeroplane","owner":"jordaneremieff","description":"Example project using Django and FastAPI together.","archived":false,"fork":false,"pushed_at":"2023-04-16T13:43:50.000Z","size":32,"stargazers_count":71,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-03T19:45:22.436Z","etag":null,"topics":["asgi","django","fastapi","pydantic","python","serverless"],"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/jordaneremieff.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}},"created_at":"2021-04-03T10:05:16.000Z","updated_at":"2025-03-12T08:51:45.000Z","dependencies_parsed_at":"2023-07-25T18:31:45.707Z","dependency_job_id":null,"html_url":"https://github.com/jordaneremieff/aeroplane","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jordaneremieff/aeroplane","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordaneremieff%2Faeroplane","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordaneremieff%2Faeroplane/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordaneremieff%2Faeroplane/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordaneremieff%2Faeroplane/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jordaneremieff","download_url":"https://codeload.github.com/jordaneremieff/aeroplane/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordaneremieff%2Faeroplane/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277626976,"owners_count":25849789,"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-09-30T02:00:09.208Z","response_time":75,"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":["asgi","django","fastapi","pydantic","python","serverless"],"created_at":"2024-10-11T18:58:00.946Z","updated_at":"2025-09-30T03:32:05.517Z","avatar_url":"https://github.com/jordaneremieff.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aeroplane\n\nAn experiment combining [Django](https://www.djangoproject.com/) and [FastAPI](https://fastapi.tiangolo.com/). Also includes [Djantic](https://github.com/jordaneremieff/djantic) for converting Django models to Pydantic models and an example serverless configuration.\n\n\u003cp align=\"center\"\u003e\n\u003ckbd\u003e\u003cimg width=\"200\" alt=\"Screen Shot 2021-04-04 at 3 48 27 pm\" src=\"https://user-images.githubusercontent.com/1376648/113499971-c97f6a80-955d-11eb-99b0-a81ea2344ac1.png\"\u003e\u003c/kbd\u003e\n\u003ckbd\u003e\u003cimg width=\"200\" alt=\"Screen Shot 2021-04-04 at 3 47 54 pm\" src=\"https://user-images.githubusercontent.com/1376648/113499972-cab09780-955d-11eb-9aee-3b4bad6cba08.png\"\u003e\u003c/kbd\u003e\n\u003c/p\u003e\n\n## Initial setup\n\n***Requirements***: Python 3.7+\n\nFirst create a virtual environment and install the dependencies:\n\n```shell\npython -m .venv venv\n. .venv/bin/activate\npip install -r requirements.txt\n```\n\n***Note***: The `mangum` requirement is only necessary if deploying to AWS Lambda, and `psycopg2-binary` is only necessary for Postgres support.\n\n## Configuring the database\n\nAny supported Django database configuration can be used, this example provides to examples:\n\n- To use Postgres, rename `.env.dist` to `.env` and set the details for the database. These will be loaded in `settings.py`.\n\n- To use SQLite, edit `settings.py` to uncomment the sqlite3 database configuration.\n\nThen populate the initial database tables using the migration command:\n\n```shell\n./manage.py migrate\n```\n\n## Running the application locally\n\nRun the server locally using `uvicorn`:\n\n```shell\nuvicorn aeroplane.main:app --debug\n```\n\nThe [auto-generated docs](https://fastapi.tiangolo.com/features/#automatic-docs) proivded by FastAPI are available at http://localhost:8000/docs\n\nThe [model admin](https://docs.djangoproject.com/en/3.1/ref/contrib/admin/) provided by Django is availabe at http://localhost:8000/dj/admin\n\n## Deploying to AWS Lambda \u0026 API Gateway\n\nThis example provides a configuration for using [Serverless Framework](https://www.serverless.com/framework/docs/providers/aws/guide/installation/) with [Mangum](https://mangum.io) to deploy the ASGI application to AWS Lambda with API Gateway, and it requires a remote Postgres database to be configured in the application settings.\n\nThe following steps assumes a remote Postgres database is already setup and Serverless Framework is already installed:\n\n- Edit the `serverless.yml` where necessary\n- Add the remote database details to `.env`\n- Run `sls deploy`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjordaneremieff%2Faeroplane","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjordaneremieff%2Faeroplane","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjordaneremieff%2Faeroplane/lists"}