- In this repo, I am creating simple celery app with React using django-rest-framework.
- It will asks you to enter your email address, subject and message, after submit button it will start sending you mail with every 1 minute of interval.
- Backend
- Python
- Django
- Django Rest
- Database
- SQLite3
- Frontend
- React
First make sure that you have the following installed.
- Python 3
- Node.js
- Redis MSI Now do the following to setup project.
First, clone the repository to your local machine:
git clone git@github.com:samir321-pixel/Django_Celery_With_React.git
https://nodejs.org/en/
https://github.com/MicrosoftArchive/redis/releases/download/win-3.2.100/Redis-x64-3.2.100.msi
- Open CMD in following folder
\Sending_Mail_Using_Celery\frontend\
- Hit the following commands
npm install
npm start
pip install -r requirements.txt
- Open File
Sending_Mail_Using_Celery\settings.py
- Enter Your Email details:
EMAIL_HOST_USER = 'yourgmail.com'
EMAIL_HOST_PASSWORD = 'yourpassword'
python manage.py migrate
python manage.py createsuperuser
- Open Terminal Window & Hit
celery -A Sending_Mail_Using_Celery worker -l info
- Open New Terminal Window & Hit
celery -A Sending_Mail_Using_Celery worker -l info
Finally, run the development server:
python manage.py runserver
The project will be available at http://localhost:3000/welcome.
Chrome | Internet Explorer | Edge | Safari | Firefox |
---|---|---|---|---|
Yes | 10+ | Yes | Yes | Yes |
Need help? Feel free to contact me @ saitwalsamir@gmail.com
Made By Samir Saitwal with ❤️