This project demonstrates how to create a contact page using Streamlit and send emails using AWS Lambda and SES.
project-root-directory/
โ
โโโ .env # Contains environment variables like API_GATEWAY_ENDPOINT
โโโ .gitignore # Contains patterns of files or directories that git should ignore
โ
โโโ streamlit_app/
โ โโโ app.py # Streamlit frontend code
โ โโโ requirements.txt # Python libraries for Streamlit app
โ
โโโ lambda_function/
โโโ lambda_function.py # AWS Lambda code for sending emails
โโโ requirements.txt # Python libraries for Lambda function
- Environment Variables: Set up the
.env
file with the necessary environment variables, e.g.,API_GATEWAY_ENDPOINT
. - Python Libraries: Navigate to both
streamlit_app
andlambda_function
and run:
pip install -r requirements.txt
- Deploy Lambda: Deploy the
lambda_function.py
to AWS Lambda. - Run Streamlit App: In the root directory, execute:
streamlit run streamlit_app/app.py
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.