Celery Notif is a Django web application that demonstrates how to use Celery to work asynchronously and save notifications to the notifications model. This means that users do not have to wait for the page to load and can see that the notification is being sent in the background.
To install and run Celery Notif, follow these steps:
- Clone the repository to your local machine:
git clone https://github.com/egenius01/celery_notif.git - Install the necessary dependencies:
pip install -r requirements.txt - Set up a Celery worker:
celery -A celery_notif worker -l info - Run the Django development server:
python manage.py runserver - Open your web browser and go to http://localhost:8000 to view the app.
To use Celery Notif, follow these steps:
- Click on the "Notifications" button to view your notifications.
- Create a new notification by filling out the single input form and clicking "Send".
- You should see a message that the notification is being sent in the background.
- Check the "Notifications" page to see that your notification has been saved to the notifications model.
If you'd like to contribute to Celery Notif, please follow these steps:
- Fork the repository.
- Create a new branch for your changes:
git checkout -b feature/your-feature-name - Make your changes and commit them:
git commit -m "Add your commit message here" - Push your changes to your fork:
git push origin feature/your-feature-name - Create a pull request from your fork to the main repository.
Celery Notif was created by Your Name.
Celery Notif is licensed under the MIT License.```