The Notifier project is a Python-based application designed to send notifications via email. It includes functionality for testing email configurations and sending notifications based on specific triggers.
notifier/
├── __pycache__/
├── .envv
├── .gitignore
├── .pytest_cache/
├── bin/
├── Dockerfile
├── email_tester.py
├── emails/
├── execute.sh
├── main.py
├── Procfile
├── pytest.ini
├── pyvenv.cfg
├── README.md
├── requirements.txt
├── src/
└── venv/
- Python 3.x
- Docker (optional, for containerized deployment)
-
Clone the repository:
git clone <repository-url> cd notifier
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required dependencies:
pip install -r requirements.txt
-
Set up environment variables:
- Copy the
.env.example
file to.env
and update the necessary configurations.
- Copy the
To run the main application:
python main.py
To build and run the application using Docker:
-
Build the Docker image:
docker build -t notifier .
-
Run the Docker container:
docker run -d --env-file .env notifier
main.py
: The main entry point of the application.email_tester.py
: A script for testing email configurations.emails/
: Directory containing email templates.requirements.txt
: List of Python dependencies.Dockerfile
: Docker configuration for containerizing the application.execute.sh
: Shell script for executing specific tasks.src/
: Source code directory.venv/
: Virtual environment directory.
Contributions are welcome! Please open an issue or submit a pull request for any changes.