The following should be installed:
- Docker
- Python
- Python virtualenv
- An account on AfricasTalking.
- Setup python virtual environment:
virtualenv venv
- Install dependencies:
source venv/bin/activate && pip install -r requirements.txt
- Create docker container:
docker-compose -f docker-compose.yml up -d
- Setup your AfricasTalking credentials:
mv .env.example .env
Edit appropriately
- Create a Kafka Topic called
otpCodes
(this is important):
./scripts/create.sh -n otpCodes -c kafka-tmc
- Now run the producer.py then consumer.py on separate terminals respectively. Happy coding :)