{"id":40492616,"url":"https://github.com/0x03c1/fastapi","last_synced_at":"2026-04-18T02:03:03.776Z","repository":{"id":168808296,"uuid":"572331905","full_name":"0x03c1/FastAPI","owner":"0x03c1","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-29T17:55:39.000Z","size":34,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-21T02:05:27.090Z","etag":null,"topics":["aws-ec2","fastapi","json","json-schema","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/0x03c1.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-11-30T03:17:48.000Z","updated_at":"2025-04-29T17:55:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"7f796b59-dfc6-47b1-8aec-37b41edbb0eb","html_url":"https://github.com/0x03c1/FastAPI","commit_stats":null,"previous_names":["ronierisonmaciel/fastapi","0x03c1/fastapi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/0x03c1/FastAPI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x03c1%2FFastAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x03c1%2FFastAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x03c1%2FFastAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x03c1%2FFastAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0x03c1","download_url":"https://codeload.github.com/0x03c1/FastAPI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x03c1%2FFastAPI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31953515,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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":["aws-ec2","fastapi","json","json-schema","python"],"created_at":"2026-01-20T18:53:40.062Z","updated_at":"2026-04-18T02:03:03.761Z","avatar_url":"https://github.com/0x03c1.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://fastapi.tiangolo.com\"\u003e\u003cimg src=\"https://fastapi.tiangolo.com/img/logo-margin/logo-teal.png\" alt=\"FastAPI\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\n# FastAPI Tutorial\n\nFastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.7+ based on standard Python type hints.\n\nThis is a simple example FastAPI application that pretends to be a planets.\n\n# Deploying to AWS EC2\n\nLog into your AWS account and create an EC2 instance (`t2.micro`), using the latest stable\nUbuntu Linux AMI.\n\n[Amazon EC2 Getting Started](https://aws.amazon.com/pt/ec2/getting-started/) and run these commands to update the software repository and install\nour dependencies.\n\n```bash\nsudo apt-get update\nsudo apt install -y python3-pip nginx\n```\n\nClone the FastAPI server app (or create your `main.py` in Python).\n\n```bash\ngit clone git@github.com:RonierisonMaciel/fastapi.git\n```\n\n```bash\ncd fastapi\npip3 install -r dev-requirements.txt\n```\n\nAdd the FastAPI configuration to NGINX's folder. Create a file called `fastapi_nginx` (like the one in this repository).\n\n```bash\nsudo nano /etc/nginx/sites-enabled/fastapi_nginx\n```\n\nAnd put this config into the file (replace the IP address with your EC2 instance's public IP):\n\n```\nserver {\n    listen 80;   \n    server_name \u003cYOUR_EC2_IP\u003e;    \n    location / {        \n        proxy_pass http://127.0.0.1:8000;    \n    }\n}\n```\n\nStart NGINX.\n\n```bash\nsudo service nginx restart\n```\n\nStart FastAPI.\n\n```bash\ncd fastapi\npython3 -m uvicorn swapi.main:app\n```\n\nUpdate EC2 security-group settings for your instance to allow HTTP traffic to port 80.\n\nNow when you visit your public IP of the instance, you should be able to access your API.\n\n## Interactive API docs\n\n```bash\nhttp:\u003cYOUR_EC2_IP\u003e/api/planets/\nhttp:\u003cYOUR_EC2_IP\u003e/docs\nhttp:\u003cYOUR_EC2_IP\u003e/redoc\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0x03c1%2Ffastapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0x03c1%2Ffastapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0x03c1%2Ffastapi/lists"}