diff --git a/README.md b/README.md index 11270fb1cdf22a793a674e588f6640f1f7a49c23..78fa4cb7f7b72c48427aacb221c1c19a78518c53 100644 --- a/README.md +++ b/README.md @@ -129,8 +129,26 @@ When created, you should already be set to use the new virtual environment, but workon CLMC ``` -Now, any installed libraries will be specificly installed in this environment only. To install and use the CLMC service -locally, the easiest thing to do is to use **pip** (make sure you are in the root folder of the project - ***flame-clmc***): +Now, any installed libraries will be specifically installed in this environment only. + +To install and use the CLMC service locally, the easiest thing to do is to use **pip**. Navigate to the clmcservice root folder: +``` +cd src/clmcservice +``` + +Test the CLMC service using **tox** along with the ***tox.ini*** configuration file. If tox is not installed run: + +``` +pip install tox +``` + +After it is installed, simply use the **tox** command: + +``` +tox +``` + +Then install the service in development mode. ``` pip install -e . @@ -142,4 +160,4 @@ Finally, start the service on localhost by using pyramid's **pserve**: pserve development.ini --reload ``` -You should now be able to see the 'Hello world' message when visiting **http://localhost:8080** in your browser. \ No newline at end of file +You should now be able to make requests to the CLMC service on http://localhost:8080/aggregator. \ No newline at end of file diff --git a/src/clmcservice/setup.py b/src/clmcservice/setup.py index bbc0d79dd8bac5232554ed2b626932a37b2ca85d..f0b52b78685faa99f8987ecb5d5b83192466c599 100644 --- a/src/clmcservice/setup.py +++ b/src/clmcservice/setup.py @@ -46,11 +46,11 @@ requires = [ 'pyramid_debugtoolbar', 'waitress', 'influxdb', + 'pytest', ] tests_require = [ 'WebTest >= 1.3.1', # py3 compat - 'pytest', 'pytest-cov', ]