Skip to content

Latest commit

 

History

History
66 lines (66 loc) · 1.48 KB

README.md

File metadata and controls

66 lines (66 loc) · 1.48 KB

image

TwMailer Project

Prerequisites

Before you can build and run TwMailer, you need to install annoying dependencies.

Install Build Tools for Make and g++

sudo apt-get install -y build-essential

Install LDAP Development Libraries

sudo apt-get install -y libldap2-dev

Install CMake and Git for GoogleTest

sudo apt-get install -y cmake git

Clone the GoogleTest repository to your project directory.

hint: cd ~/Documents/TwMailer/tests

git clone https://github.com/google/googletest.git || (cd googletest && git pull)

Directory Structure

├── src
│   ├── server
│   ├── client
│   └── shared
├── build
│   ├── server
│   ├── client
│   └── shared
├── bin
├── data
├── conf
├── logs
├── mail_spool
└── tests
     └─ obj
        ├── client
        ├── shared
        └── server

Building the Project

Navigate to the project root directory and run make to build the application.

make all

Server first

hint: port and mail directory can be adjusted in the .conf file else the program does it for you

 ./bin/twmailer-server

Client

 ./bin/twmailer-client 127.0.0.1 8080

Tests

Navigate to the tests directory

cd tests
make all

To run the tests:

make test