This example shows how to use FastApi on Vercel with Serverless Functions using the Python Runtime.
Did you like the project? Please, considerate a donation to help improve!
✨
ORACLE_KEY=0x6fc410e13e76c5d55e059641cd2fa130cdcdad1432fe3da925c088f9f87b8dda
AUTHORIZER_KEY='0x6fc410e13e76c5d55e059641cd2fa130cdcdad1432fe3da925c088f9f87b8dda'
ALLOWED_ORACLE_BATCH_NBRS=[20231213]
CORE_CONTRACT_ADDRESS=CFXTEST:TYPE.CONTRACT:ACGJ7TM0NF8WWBFDFGGMUZVN7Y75R347FJ4VTFGF27
CLIENT_SECRET=ad10f2758520ff32af77532733f92c7c91feb819
CLIENT_ID=d0c381ebc79d32d0ed38
CROWDIN_CLIENT_ID=Twl7fLNfVagmoEUiWPEO
CROWDIN_CLIENT_SECRET=DDqcqsr2oKY6WK6AKWJeWJqY4JByOXSZQAORFNCv
CROWDIN_REDIRECT_URI=http://localhost:3000/crowdinCallback
This example shows how to use FastApi 0.88.0 on Vercel with Serverless Functions using the Python Runtime.
deploy-python-fastapi-in-vercel.vercel.app
This example uses the Web Server Gateway Interface (WSGI) with FastApi to enable handling requests on Vercel with Serverless Functions.
# Build the Docker image
docker build -t deploy-python-fastapi-in-vercel .
# Run the Docker container
docker run -p 8000:8000 deploy-python-fastapi-in-vercel
pip install -r requirements.txt
uvicorn main:app --host 0.0.0.0 --port 8000
Your FastApi application is now available at http://localhost:8000
.
Copyright © 2023 Hebert F Barros.
This project is MIT licensed.