https://github.com/crazyoptimist/fastapi-serverless-poc
FastAPI Serverless Proof of Concept
https://github.com/crazyoptimist/fastapi-serverless-poc
Last synced: about 1 year ago
JSON representation
FastAPI Serverless Proof of Concept
- Host: GitHub
- URL: https://github.com/crazyoptimist/fastapi-serverless-poc
- Owner: crazyoptimist
- Created: 2024-01-10T09:25:28.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-10T10:23:43.000Z (over 2 years ago)
- Last Synced: 2025-02-05T22:59:04.668Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FastAPI Serverless POC
### Instructions
Install dependencies
```bash
virtualenv env
source ./env/bin/activate
pip install -r ./src/requirements.txt
```
Set up pre-commit
```bash
pre-commit install
```
Run the app locally(not serverless)
```bash
python ./src/main.py
```
### Test in AWS Lambda
To test the application in Lambda, you will need to simulate a fake API Gateway Proxy request. To do this, navigate to the Lambdas test page and select the "apigateway-aws-proxy" template. From there, you can adjust the path and other relevant parameters as needed.
### Further steps
- Dockerize
- Infrastructure with Terraform -> API Gateway with Custom Domain
### License
MIT