{"id":18464886,"url":"https://github.com/neondatabase-labs/fastapi-apprunner-neon","last_synced_at":"2025-04-08T08:31:33.483Z","repository":{"id":221729465,"uuid":"755200747","full_name":"neondatabase-labs/fastapi-apprunner-neon","owner":"neondatabase-labs","description":"Create a serverless API using FastAPI, deployed on AWS App Runner and powered by Neon Postgres","archived":false,"fork":false,"pushed_at":"2024-04-12T04:40:23.000Z","size":67,"stargazers_count":7,"open_issues_count":1,"forks_count":3,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-22T09:16:01.326Z","etag":null,"topics":["aws-apprunner","fastapi","postgres","postgresql","python","serverless","sqlalchemy","sqlmodel","uvicorn"],"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/neondatabase-labs.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-02-09T16:28:01.000Z","updated_at":"2025-01-24T15:47:32.000Z","dependencies_parsed_at":"2024-11-06T09:12:23.861Z","dependency_job_id":"cd6d80f8-aeb1-487e-b7f8-cf6d1972aae9","html_url":"https://github.com/neondatabase-labs/fastapi-apprunner-neon","commit_stats":null,"previous_names":["neondatabase/fastapi-apprunner-neon","neondatabase-labs/fastapi-apprunner-neon"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neondatabase-labs%2Ffastapi-apprunner-neon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neondatabase-labs%2Ffastapi-apprunner-neon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neondatabase-labs%2Ffastapi-apprunner-neon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neondatabase-labs%2Ffastapi-apprunner-neon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neondatabase-labs","download_url":"https://codeload.github.com/neondatabase-labs/fastapi-apprunner-neon/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247804483,"owners_count":20998993,"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","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":["aws-apprunner","fastapi","postgres","postgresql","python","serverless","sqlalchemy","sqlmodel","uvicorn"],"created_at":"2024-11-06T09:11:25.516Z","updated_at":"2025-04-08T08:31:33.466Z","avatar_url":"https://github.com/neondatabase-labs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastAPI App with Neon Serverless Postgres and AWS App Runner\n\n_This repository is a companion to a [FastAPI and AWS App Runner with Neon](https://neon.tech/blog/deploy-a-serverless-fastapi-app-with-neon-postgres-and-aws-app-runner-at-any-scale) post on the Neon blog._\n\nThis repository hosts a FastAPI application leveraging Neon Serverless Postgres, deployed via AWS App Runner. This setup offers a solution for developing and deploying Python applications with demands for performance and reliability.\n\n## Features\n\n- **FastAPI**: A modern, fast (high-performance) web framework for building APIs with Python 3.11, featuring automatic Swagger UI generation, type checking, and asynchronous request handling.\n- **Neon Serverless Postgres**: A scalable, fully managed serverless Postgres database, minimizing operational overhead.\n- **AWS App Runner**: An AWS service that provides a simple, fully managed environment for deploying containerized-type applications, eliminating the need for infrastructure configuration and management.\n\n## Prerequisites\n\n- Python 3.11\n- AWS Account\n- A [Neon account for Serverless Postgres](https://neon.tech/)\n- Git\n- [Poetry](https://python-poetry.org/) for Python dependency management\n\n## Getting Started\n\n### 1. Clone the Repository\n\nClone the repository to your local machine and navigate into the project directory:\n\n```bash\ngit clone https://github.com/neondatabase/fastapi-apprunner-neon\ncd fastapi-apprunner-neon\n```\n\n### 2. Setup Your Python Environment with Poetry\n\nInitialize a new environment using Poetry and install the project dependencies:\n\n```sh\npoetry install\n```\n\n### 3. Neon Serverless Postgres\n\n- Sign up or log in to your Neon account\n- You'll need this the database connection string for configuration.\n\n### 4. Deploy to AWS App Runner\n\nFollow along in the blog post to configure AWS SSM Parameter Store and deploy the FastAPI to AWS App Runner.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneondatabase-labs%2Ffastapi-apprunner-neon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneondatabase-labs%2Ffastapi-apprunner-neon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneondatabase-labs%2Ffastapi-apprunner-neon/lists"}