- Pull project:
git pull https://github.com/Murtrag/MailServer.git
- Go to project directory:
cd MailServer
- Run containers:
$ docker-compose -f docker-compose.yaml up -d
- Go to app container:
docker exec -it mailserver_app bash
- Run setup file:
# python3 setup.py
./main.py -u user -p password
Creates a new user.
./main.py -u user -p password -e -n new_password
Changes user's password
./main.py -u user -p password -d
Deletes user from database.
./message.py -u login -p password -l
Displays all user's messages
./message.py -u login -p password -t [email protected] -s 'topic::message to send'
Sends message to another user
Run tests:
# python3 -m pytest
Tests should be run inside of the container because of the connection with the db
markers:
- connection
- user
- messages
- clcrypto