a simple web application that is able to serve a POST endpoint. The main function of the endpoint is to store in the database an email for a particular group of recipients. The emails are then to be sent automatically at a later time
This project is a simple web application built using Flask, allowing users to store email messages for a group of recipients and schedule them to be sent at a later time.
Follow these steps to set up the project environment locally:
- Clone the repository:
git clone <repository-url>
cd <project-folder>
- Create and activate a virtual environment (optional but recommended):
python -m venv env
source env/bin/activate # For Unix/Linux
\env\Scripts\activate # For Windows
- Install dependencies:
pip install -r requirements.txt
- Set up environment variables:
cp .env.example .env
Edit the .env
file and fill in the required configurations.
To run the Flask application locally, execute the following command:
python run.py
Access the application in your web browser at http://localhost:5000
.
To run the unit tests, use the following command:
python -m unittest discover tests