Skip to content

Commit 9dc7255

Browse files
committed
update readme and clean tests
1 parent 23ffe30 commit 9dc7255

File tree

7 files changed

+29
-132
lines changed

7 files changed

+29
-132
lines changed

README.md

Lines changed: 26 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -3,71 +3,46 @@
33
<i>An open source project from Data to AI Lab at MIT.</i>
44
</p>
55

6-
<!-- [![PyPI Shield](https://img.shields.io/pypi/v/mtv.svg)](https://pypi.python.org/pypi/mtv) -->
6+
[![Development Status](https://img.shields.io/badge/Development%20Status-2%20--%20Pre--Alpha-yellow)](https://pypi.org/search/?c=Development+Status+%3A%3A+2+-+Pre-Alpha)
7+
[![PyPI Shield](https://img.shields.io/pypi/v/sintel.svg)](https://pypi.python.org/pypi/sintel)
8+
[![Travis CI Shield](https://travis-ci.org/signals-dev/sintel.svg?branch=master)](https://travis-ci.org/signals-dev/sintel)
9+
[![Coverage Status](https://codecov.io/gh/signals-dev/sintel/branch/master/graph/badge.svg)](https://codecov.io/gh/signals-dev/sintel)
10+
[![Downloads](https://pepy.tech/badge/sintel)](https://pepy.tech/project/sintel)
11+
<!-- [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/signals-dev/sintel/master?filepath=tutorials) -->
712

8-
[![Build Status](https://travis-ci.com/dyuliu/mtv.svg?branch=master)](https://travis-ci.com/dyuliu/mtv)
9-
[![Coverage Status](https://coveralls.io/repos/github/dyuliu/MTV/badge.svg)](https://coveralls.io/github/dyuliu/MTV)
10-
[![Github All Releases](https://img.shields.io/github/downloads/dyuliu/MTV/total)](https://github.com/dyuliu/MTV/releases)
11-
[![Docker Pulls](https://img.shields.io/docker/pulls/dyuliu/mtv)](https://hub.docker.com/r/dyuliu/mtv)
1213

13-
# MTV
14+
# Sintel
1415

15-
**MTV** is a visual analytics system built for anomaly analysis of multiple time-series data.
16+
**Sintel** (Signal Intelligence) provides Restful APIs to process massive signal data for anomaly analysis in an efficient and user-friendly way.
1617

17-
The Restful APIs documentation: http://mtv.lids.mit.edu:8080/
18+
* License: [MIT](https://github.com/signals-dev/sintel/blob/master/LICENSE)
19+
* Development Status: [Pre-Alpha](https://pypi.org/search/?c=Development+Status+%3A%3A+2+-+Pre-Alpha)
20+
* Homepage: https://github.com/signals-dev/sintel
21+
* Documentation:
22+
* http://mtv.lids.mit.edu/apidocs (Swagger UI style)
23+
* http://mtv.lids.mit.edu/redoc (Redoc UI style)
1824

19-
## License
20-
21-
[The MIT License](https://github.com/HDI-Project/MTV/blob/master/LICENSE)
22-
23-
## Before You Begin
24-
25-
Before you begin we recommend you read about the basic building blocks that assemble the **MTV**:
2625

2726
## Prerequisites
2827

2928
Make sure you have installed all of the following prerequisites on your development machine:
3029

31-
- **Python (>=3.0)** - MTV has been developed and runs on [Python 3.6](https://www.python.org/downloads/release/python-360/). Although it is not strictly required, the usage of a [virtualenv](https://virtualenv.pypa.io/en/latest/) is highly recommended in order to avoid interfering with other software installed in the system where **MTV** is run. To this end, [Anaconda python](https://www.anaconda.com/distribution/#download-section) is suggested to maintain the virtual environments.
30+
- **Python (>= 3.0)** - Sintel has been developed and runs on [Python 3.6](https://www.python.org/downloads/release/python-360/). Although it is not strictly required, the usage of a [virtualenv](https://virtualenv.pypa.io/en/latest/) is highly recommended in order to avoid interfering with other software installed in the system where **MTV** is run. To this end, [Anaconda python](https://www.anaconda.com/distribution/#download-section) is suggested to maintain the virtual environments.
3231
- **Git** - [Download & Install Git](https://git-scm.com/downloads). OSX and Linux machines typically have this already installed.
33-
- **Node.js (>= 10.0.0)** - [Download & Install Node.js](https://nodejs.org/en/download/) and the npm package manager. Make sure to install gulp-cli globally after the installation of Node.js.
3432
- **MongoDB (>= 3.6)** - [Download & Install MongoDB](http://www.mongodb.org/downloads), and make sure it's running on the default port (27017).
3533

3634
## Get Started
3735

38-
### Downloading MTV
39-
40-
##### Cloning from Github
41-
42-
The recommended way to get MTV is to use git to directly clone the MTV repository:
43-
44-
```bash
45-
$ git clone https://github.com/HDI-Project/MTV mtv
46-
```
47-
48-
This will clone the latest version of the MTV repository to a **mtv** folder.
49-
50-
##### Downloading the zip file
51-
52-
Another way to use the MTV is to download a zip copy from the [master branch on GitHub](https://github.com/HDI-Project/MTV/archive/master.zip). You can also do this using the `wget` command:
53-
54-
```bash
55-
$ wget https://github.com/HDI-Project/MTV/archive/master.zip -O mtv.zip
56-
$ unzip mtv.zip
57-
$ rm mtv.zip
58-
```
59-
60-
Don't forget to rename **mtv-master** after your project name.
6136

6237
### Quick Install
6338

64-
Once you've downloaded the MTV repository and installed all the prerequisites, you're just a few steps away from running your application. To install the project, create a virtualenv and execute
39+
Once you've downloaded the Sintel repository and installed all the prerequisites, you're just a few steps away from running your application. To install the project, create a virtualenv and execute
6540

6641
```bash
6742
$ make install
6843
```
6944

70-
This command will install all the dependencies needed for the application (server-end) to run. For development, use the following command instead, which will install some additional
45+
This command will install all the dependencies needed for the application to run. For development, use the following command instead, which will install some additional
7146
dependencies for code linting and testing
7247

7348
```bash
@@ -76,50 +51,36 @@ $ make install-develop
7651

7752
### Running Your Application
7853

79-
Please activate your virtualenv for MTV first, and then launch the server and the client:
80-
81-
```bash
82-
$ mtv run -v
83-
```
84-
85-
Then launch the client:
54+
Please activate your virtualenv, and then launch the API server:
8655

8756
```bash
88-
$ npm -C client run serve
57+
$ sintel run -v
8958
```
9059

91-
Your application should run on **port 4200** with the **_production_** environment by default. Just go to [http://localhost:4200](http://localhost:4200) in your browser (Chrome recommended).
60+
Go to the API playground ([http://localhost:3000/apidocs](http://localhost:3000/apidocs)) to have a try.
9261

9362
### Development
9463

95-
The server-end code and client-end code are in two separate folders, namely,`<project-home>/mtv` and `<project-home>/client`
96-
97-
Run the following command for server-end development
98-
99-
```bash
100-
$ mtv run -E development -v
101-
```
102-
103-
Run the following command for client-end development
64+
Run the following command for the purpose of development
10465

10566
```bash
106-
$ npm -C client start
67+
$ sintel run -E development -v
10768
```
10869

10970
### Data
11071

111-
The command `make install` or `make install-develop` has already pull the demo dataset and restore it into MongoDB. The database name by default is `mtv`.
72+
The command `make install` or `make install-develop` has already pull the demo dataset and restore it into MongoDB. The database name by default is `sintel`.
11273

11374
##### Working with [Orion](https://github.com/D3-AI/Orion) to generate your own data
11475

115-
You can type the following command to update the data from Orion to MTV-supported formats. Note that you can configure the mongodb in the file `./mtv/config.yaml`.
76+
You can type the following command to update the data from Orion to Sintel-supported formats. Note that you can configure the mongodb in the file `./sintel/config.yaml`.
11677

11778
```bash
11879
$ mtv update db -v
11980
```
12081

12182

122-
## Production deploy with Docker
83+
## Use Docker to deploy
12384

12485
- Install [Docker](https://docs.docker.com/install/) and [Compose](https://docs.docker.com/compose/install/)
12586

@@ -133,38 +94,4 @@ $ mtv update db -v
13394
$ make docker-up
13495
```
13596

136-
The application should be successfully running on **port 4200** using the **production** environment by default. Just go to [http://localhost:4200](http://localhost:4200) in your chrome browser to start your exploration.
137-
138-
The application should be successfully running on **port 3000** using the **production** environment by default. Just go to [http://localhost:3000](http://localhost:3000) in your chrome browser to start your exploration.
139-
140-
For further commands, please refer to `Makefile`, the session of Docker Installation.
141-
142-
## Production deploy with Docker in local secure environment
143-
144-
- Download `mtv.zip`, unzip it, and enter the directory. The directory contains the source code of mtv; under the home directory, there is one file named `mtv.tar` which is the exported docker container's filesystem for mtv. Also, the MongoDB data is also ready under the folder `<project-home>/db-instance/data/`
145-
146-
- Under the project home directory, install the mtv docker images:
147-
148-
```bash
149-
$ docker load --input mtv.tar
150-
```
151-
152-
- Then restore data back to database:
153-
154-
```bash
155-
$ docker-compose -f docker-compose-db.yml up
156-
```
157-
158-
- Finally start the application:
159-
```bash
160-
$ docker-compose up --no-build -d
161-
```
162-
163-
Your application should run on **port 4200** with the ***production*** environment by default. Just go to [http://localhost:4200](http://localhost:4200) in your browser to start your exploration.
164-
165-
## Additional Resources
166-
167-
- [Install python Mac OS](https://www.python.org/downloads/mac-osx/)
168-
- [Install python Ubuntu](https://linuxize.com/post/how-to-install-python-3-7-on-ubuntu-18-04/)
169-
- [Install anaconda](https://docs.anaconda.com/anaconda/install/)
170-
- [Install python virtual environment](https://virtualenv.pypa.io/en/latest/)
97+
Go to the API playground ([http://localhost:3000/apidocs](http://localhost:3000/apidocs)) to have a try. For further commands, please refer to `Makefile`, the session of Docker Installation.
110 Bytes
Loading
200 Bytes
Loading

apidocs/ui3/static/favicon.ico

-15 KB
Binary file not shown.

apidocs/ui3/static/swagger-ui-standalone-preset.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
import json
33
import random
44
from flasgger import Swagger
5-
from mtv.core import MTV
6-
from mtv.utils import read_config
5+
from sintel.core import MTV
6+
from sintel.utils import read_config
77

88

99
TEST_DB = 'mtv-test'

tests/database/test_db.py.disable

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)