A lightweight web application for creating and sending digital Christmas cards via email.
Create and activate a Python virtual environment, then install the required dependencies:
python3 -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
pip install -r requirements.txtTo automatically compile SCSS files to CSS during development, run:
sass --watch static/scss/:static/css/ --style expanded --no-source-mapCreate a .env file in the project root with the following content, replacing the placeholders with your actual Gmail address, app password, and application URL (localhost or deployed URL):
GMAIL_USER="mailaddress@gmail.com"
GMAIL_APP_PASSWORD="xxxx yyyy zzzz qqqq"
APP_URL="http://theURL:port_if_needed.com"
Note: Gmail App Password
To start the FastAPI server with automatic reload enabled:
uvicorn main:app --reloadJulepost can be run inside a Docker container for easier deployment and environment consistency.
Ensure you have a .env file in the project root with the necessary environment variables as described above.
docker compose up --build -dThe application should be accessible at http://APP_URL by default, where APP_URL is defined in your .env file.