Skip to content

Latest commit

 

History

History
147 lines (111 loc) · 4.33 KB

README.md

File metadata and controls

147 lines (111 loc) · 4.33 KB

Open Source Love 

Django_Celery_With_React

Introduction

  • 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.

Technology Stack

  • Backend
    • Python
    • Django
    • Django Rest
  • Database
    • SQLite3
  • Frontend
    • React

Tech Stack Involved



React Icons

🚀  Setup Instructions

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

Get Node.js from here

https://nodejs.org/en/

Get Redis MSI from here

https://github.com/MicrosoftArchive/redis/releases/download/win-3.2.100/Redis-x64-3.2.100.msi

React Setup:

  • Open CMD in following folder
\Sending_Mail_Using_Celery\frontend\
  • Hit the following commands
npm install
npm start

Backend Setup

Install the requirements:

pip install -r requirements.txt

Email Setup

  • Open File
Sending_Mail_Using_Celery\settings.py
  • Enter Your Email details:
EMAIL_HOST_USER = 'yourgmail.com'
EMAIL_HOST_PASSWORD = 'yourpassword'

run migrate

python manage.py migrate

create superuser

python manage.py createsuperuser

celery Setup

  • 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

Done!

Finally, run the development server:

python manage.py runserver

The project will be available at http://localhost:3000/welcome.

🌏 Browser Support

Chrome Chrome IE Internet Explorer Edge Edge Safari Safari Firefox Firefox
Yes 10+ Yes Yes Yes

Project Admin

Maintenance

Need help? Feel free to contact me @ saitwalsamir@gmail.com

Like This?? Star ⭐ this Repo.

forthebadge

Made By Samir Saitwal with ❤️

Samir Saitwal © 2020

ForTheBadge built-with-love ForTheBadge built-by-developers


Useful Resources