prithweedas / bhav-checker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bhav Checker

The perpous of this project is to download Equity Bhavcopy everyday and provide an UI to easily search and download search result.

Tech Stack

  • Django
  • Vue
  • Redis

Steps to host this project

Requirements

  • crontab
  • python3.9
  • docker
  • docker compose

Steps

  • Clone this repo.
git clone git@github.com:prithweedas/bhav-checker.git
  • Go to the cloned repo. Build and start the docker containers using docker-compose. (-d is to start in detached mode)
docker-compose up -d
  • Install redisearch and requests module.
python3.9 -m pip install redisearch requests
  • Run get_bhav_data.py to save initial data in redis.
  • set scripts/get_bhav_data.py as cronjob to execute monday-friday at 18:02. Open crontab using crontab -e and paste the following. We could also use tools like celery, kafka with retries so that if there is a delay from BSE to publish the data we won't have to manually execute the script for that day.
2 18 * * 1,2,3,4,5 /path/to/python3.9 /path/to/cloned/repo/scripts/get_bhav_data.py
  • go to port 8000 to use it.

About


Languages

Language:Python 51.2%Language:Vue 29.6%Language:HTML 10.9%Language:JavaScript 5.6%Language:Dockerfile 2.7%