A server to make HTTP requests at a particular time with a database-backed work queue
git clone https://github.com/<your-GitHub-Username>/notification-server.git
pip install -r requirements.txt
export NOTIFICATIONS_SUPERUSER_PASSWORD="ADMIN_PANEL_PASSWORD"
(src/notification_server/settings.py
)
Set DELETE_PAST_NOTIFICATIONS
to False
if you want to keep the past notifications' data in the DB
DELETE_PAST_NOTIFICATIONS = True
cd src/
python manage.py db_setup
Username: superuser
Run these two processes: Django-Server and process_tasks
management command
python manage.py runserver
python manage.py process_tasks
Method | Endpoint | Function |
---|---|---|
POST | place/ |
Place a new Notification |
DELETE | remove/<notification_id> |
Delete Notification with specified ID |
{
"url": STRING,
"method": ["post"|"delete"|"patch"|"get"],
"time": STRING,
"data": JSON
}