2016-12-21 13:11:39 +03:00
|
|
|
Service Book
|
|
|
|
============
|
|
|
|
|
2017-12-07 22:07:01 +03:00
|
|
|
.. image:: https://img.shields.io/badge/license-MPL%202.0-blue.svg
|
|
|
|
:target: https://github.com/mozilla/servicebook-web/blob/master/LICENSE.txt
|
|
|
|
:alt: License
|
2018-08-14 13:53:03 +03:00
|
|
|
.. image:: https://img.shields.io/circleci/project/github/mozilla/servicebook-web/master.svg?logo=circleci
|
|
|
|
:alt: CircleCI
|
|
|
|
:target: https://circleci.com/gh/mozilla/servicebook/tree/master
|
2018-08-14 13:57:31 +03:00
|
|
|
.. image:: https://img.shields.io/coveralls/github/mozilla/servicebook-web/master.svg
|
2017-02-08 13:17:50 +03:00
|
|
|
:target: https://coveralls.io/github/mozilla/servicebook-web?branch=master
|
2017-12-07 22:07:01 +03:00
|
|
|
:alt: Coverage
|
2018-08-14 13:57:31 +03:00
|
|
|
.. image:: https://img.shields.io/travis/mozilla/servicebook-web/master.svg?logo=travis
|
2017-02-08 13:17:50 +03:00
|
|
|
:target: https://travis-ci.org/mozilla/servicebook-web
|
2017-12-07 22:07:01 +03:00
|
|
|
:alt: Travis
|
2018-07-12 23:49:24 +03:00
|
|
|
.. image:: https://pyup.io/repos/github/mozilla/servicebook-web/shield.svg
|
|
|
|
:target: https://pyup.io/repos/github/mozilla/servicebook-web/
|
|
|
|
:alt: Updates
|
2017-02-08 13:17:50 +03:00
|
|
|
|
2017-02-22 02:28:52 +03:00
|
|
|
Small dashboard that lists all QA projects, and displays their Swagger
|
2016-12-21 13:11:39 +03:00
|
|
|
documentation and everything we have about them.
|
|
|
|
|
2018-07-04 15:55:34 +03:00
|
|
|
Hacking on Service Book
|
|
|
|
-----------------------
|
|
|
|
By default Service Book will use http://localhost:5000/api/ as the endpoint. If
|
|
|
|
you want to use something else, you can set the `SERVICEBOOK` environment
|
|
|
|
variable. For example, set this to http://servicebook.dev.mozaws.net/api/ to
|
|
|
|
use the development environment. For convenience, you can store this locally in
|
|
|
|
a `.env` file.
|
|
|
|
|
2018-07-11 23:41:20 +03:00
|
|
|
To install the development environment and start Service Book locally::
|
2018-07-04 15:55:34 +03:00
|
|
|
|
|
|
|
$ pipenv install --dev
|
|
|
|
$ pipenv run servicebook
|
|
|
|
|
|
|
|
Running the tests
|
|
|
|
~~~~~~~~~~~~~~~~~
|
|
|
|
To run the tests::
|
|
|
|
|
|
|
|
$ tox
|
2016-12-21 13:11:39 +03:00
|
|
|
|
2017-02-22 02:28:52 +03:00
|
|
|
Run with Docker
|
2016-12-21 13:11:39 +03:00
|
|
|
---------------
|
|
|
|
|
2018-07-04 22:08:42 +03:00
|
|
|
There's a full deployment in Docker image.
|
2017-01-03 16:17:27 +03:00
|
|
|
|
2017-02-08 17:07:39 +03:00
|
|
|
To build it::
|
2017-01-03 16:17:27 +03:00
|
|
|
|
2018-05-29 23:19:08 +03:00
|
|
|
$ make docker-build
|
2016-12-21 13:11:39 +03:00
|
|
|
|
2017-02-08 17:07:39 +03:00
|
|
|
Then, to run it::
|
2016-12-21 13:11:39 +03:00
|
|
|
|
2018-05-29 23:19:08 +03:00
|
|
|
$ make docker-run
|
2016-12-21 13:11:39 +03:00
|
|
|
|
2017-02-08 17:07:39 +03:00
|
|
|
This will expose the service book on http://localhost:5000
|