MagicRanker is an open-source stock marking ranking and filtering tool based on the Magic Formula.
You can view it in action at MagicRanker.com.
Postgres can be installed on Ubuntu 14 as follows:
sudo apt-get install postgresql-9.3
I recommend using Postgres.app: "Just download, drag to the applications folder, and double-click"
Dunno. LOL. Pull request me up if you figure it out.
Less is required for compiling CSS and Bower for installing static files.
npm install -g bower less
- Create database and user.
> createuser -W magicranker Password: > createdb magicranker
- Coming soon Download nightly data dump and load into DB.
- Clone repo.
git clone [email protected]:lextoumbourou/magicranker.com.git
- Prepare a virtualenv.
cd magicranker.com && virtualenv env
- Install Python requirements.
pip install -r requirements.txt
- Install Bower deps.
python manage.py bower install
- Run webserver.
python manage.py runserver
> python manage.py test
MagicRanker can be configured with Docker, as follows:
docker-compose build docker-compose up -d docker-compose run db createuser -h "db" -U postgres "magicranker" docker-compose run db createdb -h "db" -U postgres "magicranker" docker-compose run web python /code/manage.py migrate stock docker-compose run web python /code/manage.py bower install docker-compose run web python /code/manage.py collectstatic --noinput docker-compose run web python /code/manage.py compress docker-compose run web restart
- Update scrapers to dump CSV to a Git repo (and make it publically available).
- Create PG import scripts.
- Move scrapers out of repo.
- Flake8 repo.
- Make use of simple-ranker.