2018-02-27 00:31:35 +03:00
|
|
|
Redash-STMO
|
|
|
|
===========
|
|
|
|
|
2019-02-26 13:56:11 +03:00
|
|
|
`Redash <https://redash.io>`_ extensions for
|
|
|
|
`sql.telemetry.mozilla.org <https://sql.telemetry.mozilla.org/>`_.
|
2019-02-18 20:28:38 +03:00
|
|
|
|
2019-02-26 13:56:11 +03:00
|
|
|
Or as it should have been called: *St. Moredash* ;)
|
2019-02-18 20:29:58 +03:00
|
|
|
|
2019-02-26 13:56:11 +03:00
|
|
|
.. image:: https://circleci.com/gh/mozilla/redash-stmo.svg?style=svg
|
|
|
|
:target: https://circleci.com/gh/mozilla/redash-stmo
|
2019-02-18 20:28:38 +03:00
|
|
|
|
|
|
|
.. image:: https://codecov.io/gh/mozilla/redash-stmo/branch/master/graph/badge.svg
|
2019-02-26 13:56:11 +03:00
|
|
|
:target: https://codecov.io/gh/mozilla/redash-stmo
|
2019-02-18 20:28:38 +03:00
|
|
|
|
2019-02-26 13:56:11 +03:00
|
|
|
.. image:: https://img.shields.io/badge/calver-YY.M.PATCH-22bfda.svg
|
|
|
|
:target: https://calver.org/
|
|
|
|
:alt: CalVer - Timely Software Versioning
|
2018-02-27 00:31:35 +03:00
|
|
|
|
|
|
|
Installation
|
|
|
|
------------
|
|
|
|
|
|
|
|
Please install the package using your favorite package installer::
|
|
|
|
|
|
|
|
pip install redash-stmo
|
|
|
|
|
2019-03-07 00:58:20 +03:00
|
|
|
Development
|
|
|
|
-----------
|
|
|
|
|
2019-03-11 18:29:43 +03:00
|
|
|
During the development we're providing some convenience Make tasks that are
|
|
|
|
supposed to be run from the Docker host machine, not from inside a container.
|
2019-03-11 14:43:03 +03:00
|
|
|
|
2019-03-11 18:29:43 +03:00
|
|
|
Create the database
|
|
|
|
~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
Only once please::
|
2019-03-11 14:43:03 +03:00
|
|
|
|
2019-03-11 18:23:10 +03:00
|
|
|
make database
|
2019-03-11 14:43:03 +03:00
|
|
|
|
2019-03-11 18:29:43 +03:00
|
|
|
Install NPM modules
|
|
|
|
~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
First install the Node modules::
|
|
|
|
|
|
|
|
make node_modules
|
|
|
|
|
|
|
|
Start the containers
|
|
|
|
~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
Start backend, Celery, Redis, Postgres::
|
2019-03-07 00:58:20 +03:00
|
|
|
|
2019-03-11 18:22:47 +03:00
|
|
|
make up
|
2019-03-07 00:58:20 +03:00
|
|
|
|
2019-03-11 18:29:43 +03:00
|
|
|
Run webpack devserver
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
Please run in parallel to the containers above::
|
2019-03-07 00:58:20 +03:00
|
|
|
|
2019-03-11 18:23:10 +03:00
|
|
|
make devserver
|
2019-03-07 00:58:20 +03:00
|
|
|
|
2019-03-11 18:29:43 +03:00
|
|
|
Start shell
|
|
|
|
~~~~~~~~~~~
|
|
|
|
|
2019-03-11 18:22:47 +03:00
|
|
|
To enter the container and run a bash shell run::
|
2019-03-07 00:58:20 +03:00
|
|
|
|
2019-03-11 18:22:47 +03:00
|
|
|
make bash
|
2019-03-07 00:58:20 +03:00
|
|
|
|
2019-03-11 18:29:43 +03:00
|
|
|
Run tests
|
|
|
|
~~~~~~~~~
|
2019-03-11 14:43:03 +03:00
|
|
|
|
2019-03-11 18:22:47 +03:00
|
|
|
To run the tests (from the host machine) run::
|
2019-03-07 00:58:20 +03:00
|
|
|
|
2019-03-11 18:22:47 +03:00
|
|
|
make test
|
2019-03-07 00:58:20 +03:00
|
|
|
|
2018-02-27 00:31:35 +03:00
|
|
|
Issues & questions
|
|
|
|
------------------
|
|
|
|
|
2018-02-28 23:05:41 +03:00
|
|
|
See the `issue tracker on GitHub <https://github.com/mozilla/redash-stmo/issues>`_
|
2018-02-27 00:31:35 +03:00
|
|
|
to open tickets if you have issues or questions about Redash-STMO.
|