App is designed to demonstrate use of redis as database. To run this application locally.
sudo apt update
sudo apt install redis-server
check the redis server status with
sudo systemctl status redis
Clone git repository using
git clone [email protected]:akashshah610/bse_equities.git
Go to the bse_equities
directory and create virtual enviorment and install python requirements.
Make sure you are creating virtual env with python 2.7.15
.
pip install virtualenv
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
Create enviorment in file in root folder with name .env
and below details.
REDIS_URL=redis://localhost:6379/0
or by setting env variable using command.
export REDIS_URL=redis://localhost:6379/0
Upload BSE equity price data to redis server
python -m scripts.refresh_equity_price
Run Cherrypy Server using
python -m web.app
Open browser by clicking this link http://0.0.0.0:8080/.