fjbsantiago / ivalue

Web application that selects the best value stock to buy at the present moment in the US Stock Market

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ivalue

A Dango Application that collects financial data about US ivalue from different sources and calculates the fittest value stock for every day. The stock is selected by applying the principles in the following books:

  • "The Little Book That Still Beats the Market" by Joel Greenblatt
  • "The Five Rules for Successful Stock Investing" by Pat Dorsey

Getting Started

These instructions will get a copy of the project up and running on your local machine for development and testing purposes.

Installation Prerequisites

git

Installing

These instructions explain how to set up a working local Development Environment

Setting up a Python Virtual Environment

Install PyEnv

$ git clone https://github.com/pyenv/pyenv.git ~/.pyenv
$ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
$ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
$ echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
$ exec $SHELL (restart the shell)

Install Python 3.5.3 using PyEnv and set that version as active

$ pyenv install 3.5.3
$ pyenv local 3.5.3

Issues: Refer to https://github.com/pyenv/pyenv/wiki/Common-build-problems

Install Virtualenvwrapper plugin for PyEnv

$ git clone https://github.com/yyuu/pyenv-virtualenvwrapper.git ~/.pyenv/plugins/pyenv-virtualenvwrapper

Install Virtualenvwrapper scripts

$ export WORKON_HOME=$HOME/.virtualenvs
$ export PROJECT_HOME=$HOME/Devel (chose directory in which your projects will live)
$ source ~/.pyenv/shims/virtualenvwrapper.sh

Setting up the application

Create a virtual environment, clone the project into it and set default folder for that project

$ mkproject ivalue
$ workon ivalue (activates virtual environment and switches to project's working dir)
$ git clone https://github.com/fjbsantiago/ivalue.git

Install Python dependencies

$ pip install -r requirements.txt

Initialise Database

$ python manage.py migrate
$ python manage.py createsuperuser

Running the application

$ python manage.py runserver

Open a browser on http://localhost:8000

Authors

  • Francisco Santiago
  • João Pio

About

Web application that selects the best value stock to buy at the present moment in the US Stock Market


Languages

Language:JavaScript 63.7%Language:CSS 16.3%Language:HTML 15.6%Language:Python 4.3%Language:Makefile 0.0%