Skip to content

Application retrieve crypto data and shows it on the frontend (which is built by Vue.js) every 5 seconds. The application uses Redis (for caching and celery tasks) and Celery (to asynchronous tasks), Axios, Django DRF, and PostgreSQL to store data.

Notifications You must be signed in to change notification settings

fortyfortyy/CryptoStockData

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Django + Vue CLI + Redis + Celery = Crypto Stock App

Application retrieve crypto data and shows it on the frontend (which is built by Vue.js) every 5 seconds. The application uses Redis (for caching and celery tasks) and Celery (to asynchronous tasks), Axios, Django DRF, and PostgreSQL to store data.

Application has implemented:

  • register view
  • login view
  • forgot password view
  • activate account view
  • reset password view
  • crypto prices view

Below examples how the application looks like


Crypto prices are cached using Redis. Celery is used to create asynchronous tasks to update prices. Any frontend request is served by axios.

What’s inside the repository?

  • backend/ — Django project.
  • frontend/ — Vue CLI app generated by Vue CLI.

Running

  1. Clone the repo and cd into the directory.
  2. Install requirements: pip install -r requirements.txt
  3. Install Vue.js project dependencies: cd frontend && npm install
  4. Install Redis and Celery
  5. Now you can:
    • run the Vue.js dev server: npm run serve
    • build for production: npm run build
  6. cd to the backend/ directory and run Django, Redis and Celery servers from it:
    • python manage.py runserver
    • redis-server
    • Celery -A stockapp beat -l info
    • Celery -A stockapp worker -l info
  7. Open http://127.0.0.1:8000/ in your browser.

About

Application retrieve crypto data and shows it on the frontend (which is built by Vue.js) every 5 seconds. The application uses Redis (for caching and celery tasks) and Celery (to asynchronous tasks), Axios, Django DRF, and PostgreSQL to store data.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published