This project is a website built using Flask, Python, HTML templates, and AWS S3 for deployment. The intent is to utilize as much python as possible throughout the website.
The main directories and files include:
app.py
: Flask application setup and routingtemplates/
: HTML templates for different sectionsbuild/
: Directory containing the built HTML filesREADME.md
: Project overview and instructions (you're reading it!)
- Clone the repository.
- Set up a virtual environment:
python3 -m venv foo_venv
. i.e.,python3 -m venv flask_bryanchasko_venv
- Activate the virtual environment:
source foo_venv/bin/activate
i.e.,source flask_bryanchasko_venv/bin/activate
when done with your virtual environment session rundeactivate
- Install the dependencies:
pip install -r requirements.txt
.
To run the Flask app locally:
python3 app.py
flask-freeze will create a "build" folder with the built flask project. you're ready to sync the build folder contents to s3.
from your build directory, run:
aws s3 sync . s3://bryanchaskoflasksite2024/ --delete