Coder Social home page Coder Social logo

samir321-pixel / django_celery_with_react Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 0.0 180 KB

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

Home Page: https://github.com/samir321-pixel/Django_Celery_With_React

License: Apache License 2.0

Python 79.57% HTML 20.43%
python django django-rest-framework reactjs redis-server sqlite3 celery-redis

django_celery_with_react's Introduction

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  [email protected]: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 @ [email protected]

Like This?? Star โญ this Repo.

forthebadge

Made By Samir Saitwal with โค๏ธ

Samir Saitwal ยฉ 2020

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


Useful Resources

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.