tuskar/tuskar-ui — pull request #14 by tomassedovic (2013-08-08 13:34:46+00:00)
Title: Plugin

This is still a work in progress, but you can try it out, look at the code and add your comments.

A high-level overview of what this does:

1. All the dashboard infrastructure code has been moved to `tuskar_ui/infrastructure`. When installed, it will be available as a `tuskar_ui.infrastructure` Python module. Horizon will import it as such.
2. Most of the Horizon/Openstack Dashboard/Django files that are not specific to Tuskar UI have been removed
3. We rely on some changes made to Horizon forms and tables. I've moved the modified files under tuskar_ui and fixed the imports. We'll want to clean this up later on.
4. For production deployment, the Tuskar will have to be installed as a Python package and imported from Horizon's configuration. This is tedious for the development, so in the guide below, you can just symlink it into your Horizon.
5. The API calls are very likely broken right now
6. So is most of the UI (but you can log in and load the _Infrastructure_ tab)
7. I made no effort to fix tests. Let's first agree on the approach before diving in too deep.

# How to set it up #

1. Install and setup standalone Horizon
2. Install and setup Tuskar API
3. git clone tuskar-ui
4. cd horizon
5. ln -s ../tuskar-ui/tuskar_ui .
6. cp ../tuskar-ui/local_settings.py.example openstack_dashboard/local/local_settings.py
7. $EDITOR openstack_dashboard/local/local_settings.py
8. ./tools/with-venv.sh pip install http+git://github.com/tuskar/python-tuskarclient.git
9. ./tools/with_venv.sh ./manage.py syncdb
9. ./run_tests.sh --runserver 0.0.0.0:8080