Update README for api dev process

Change-Id: I20298cf6066e1a47e9e02b83a53b83eff41445ca
This commit is contained in:
Matthew Treinish 2015-09-17 13:07:01 -04:00
parent 84bbd5ee62
commit e14b019cbb
No known key found for this signature in database
GPG Key ID: FD12A0F214C9E177
3 changed files with 42 additions and 1 deletions

View File

@ -1,10 +1,16 @@
================
openstack-health
================
webclient for visualizing the results of tempest jobs.
webclient for visualizing test results of OpenStack CI jobs.
Installation
============
API
---
Frontend
--------
Installation of the frontend requires Node.js and Gulp. On Ubuntu::
sudo apt-get install nodejs npm nodejs-legacy
@ -16,6 +22,25 @@ Then, install the Node modules by running, from the project directory::
Usage - Development
===================
API
---
To run the REST API for development you either install the openstack_health
python package and run::
$ openstack_health_api config_file
or alternatively just can just run the api.py file manually. For example,
from the top of the repo you would run::
$ python2 openstack_health/api.py config_file
This will start up a local webserver listening on the localhost. You can
then send requests to the specified port on stdout to see the response.
Frontend
--------
A development server can be run as follows::
gulp dev
@ -25,6 +50,16 @@ filesystem.
Usage - Production
==================
API
---
The rest api is a flask application so any of the methods for deploying a
flask application can be used. The standalone entrypoint used for development
isn't suitable for production because it's single threaded. For example you
can use something like uwsgi or mod_wsgi to deploy it for real.
Frontend
--------
The production application can be build using::
gulp prod

View File

@ -0,0 +1,2 @@
[default]
db_uri = mysql+pymysql://query:query@logstash.openstack.org/subunit2sql

View File

@ -22,6 +22,10 @@ classifier =
packages =
openstack_health
[entry_points]
console_scripts =
openstack-health-api = openstack_health.api:main
[build_sphinx]
all_files = 1
build-dir = doc/build