Skip to content
This repository has been archived by the owner on Jun 29, 2024. It is now read-only.

Latest commit

 

History

History
36 lines (20 loc) · 564 Bytes

README.md

File metadata and controls

36 lines (20 loc) · 564 Bytes

Backend for messenger (https://github.com/YAJATapps/Messenger)

Uses FastAPI framework.

  1. Remove mangum to run locally.

OR

2. Deploy to AWS:

Switch to main branch

git checkout main

Setup virtualenv

virtualenv -p python3.9 env

source ./env/bin/activate

Install dependencies

pip install fastapi

pip install mangum

pip install mysql-connector-python

Zip the dependencies and python file

cd env/lib/python3.9/site-packages

zip -r9 ../../../../function.zip

cd ../../../..

zip -g ./function.zip -r api.py

Deploy the function.zip to AWS.