Schedule message on a given date time
Create a project directory
mkdir scheduler
cd scheduler
Install Virtual enviornment
sudo apt-get install python-virtualenv
Clone the project
git clone https://github.com/shinasnp/message_scheduler.git
virtualenv -p python3 env
source env/bin/activate
cd message_scheduler
pip3 install -r requirement.txt
export CLOUDAMQP_URL=amqp://username:password@hostname/vhost
celery -A scheduler worker --loglevel info --without-gossip --without-mingle --without-heartbeat
export CLOUDAMQP_URL=amqp://username:password@hostname/vhost
python manage.py runserver
python manage.py test
curl -X POST \
http://127.0.0.1:8000/message/ \
-H 'Content-Type: application/json' \
-d '{"message":"Sample Message",
"datetime":"18/01/2019 14:31"
}'