Skip to content

chinmayagrawal775/stockmarket-using-django-channels-celery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Real-Time Stock Market Price Checking App Built Using Django, Celery, Django-Channels, WebSockets.

Made with love in India made-with-python Open Source Love svg1

About Project 📄

This Real-Time Stock Market Price Checking App Built Using Django, where user can select the one or multiple stocks from the list and can check their price in Real-time which updates frequently. It Store the User Session ID in the database on temporary basis. Session ids are further used to send data to user.

Project Functionalities ⚙

  • No Login/Signup required.
  • Select the Stocks to Watch for.
  • Click on Submit button to see their Real-time prices.
  • Click on View Details button to see more details of the given Stock.
  • Django-Sessions to track the User Selected Stocks on a temporary basis.

Technologies Used 👨‍💻

  • Django - For Coding Backend of Application.
  • Django-Celery - To Add the tasks in the Queue.
  • Celery-beat - To add tasks to Queue
  • Memurai/Redis - It is used as a Message Broker & For Adding a Django Channel Layer in Backend.
  • Django-Channels - For using WebScokets to establish Real-time Communication, to update the Stock Price Regularly.
  • SQLite - Used this Default DataBase for Storing Data on temporary basis.
  • DTL - Django Template Language for Building Dynamic Pages.
  • JavaScript - For Integrating Additional functionalities in Project.
  • Bootstrap 5 - For UI Development of Project.
  • FontAwesome - For embedding icons in Project.
  • HTML/CSS - For Coding Basic Templates of Project.

Demo Of Application

To Watch the Live Demo Of Application click on the Below Given Link. View Demo 🚀.

Here Are Some ScreenShots of The Application

drawing drawing drawing drawing

How to Run This Application on local Server

To run this application on your local development server you need to run the following commands. Run Each Command in the new Terminal. (These commands are for Windows OS)

To Run the Django Development Server :

python manage.py runserver

To Start the Celery Worker :

celery -A stockmarket.celery worker --pool=solo -l info

To Start the Celery Beat Scheduler :

celery -A stockmarket beat -l INFO

Note: In case if there are uncompleted tasks in left in the queue, due to which it is sending old details of stocks, then you need to clear the queue using the below command.

celery -A stockmarket purge -f

Note

If You are Learner, or Want to test this application, Then After Forking & Cloning, You Can use these Test Credentials for accessing the Admin Panel of Application to see how it stores User Sessions on temporary basis.

- #### FOR ADMIN LOGIN ####:
  - ID : admin
  - PASSWORD : admin