2017-04-11 20:26:09 +00:00
|
|
|
# scoreboard-benchmark
|
|
|
|
|
2017-05-27 14:55:52 +00:00
|
|
|
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/5898b8005f634dc48c611a3c3337d30e)](https://www.codacy.com/app/Metonimie/benchmark-scoreboard?utm_source=github.com&utm_medium=referral&utm_content=Metonimie/benchmark-scoreboard&utm_campaign=badger)
|
|
|
|
|
2017-04-17 09:13:50 +00:00
|
|
|
![Travis CI](https://travis-ci.com/Metonimie/benchmark-scoreboard.svg?token=A1YGCrBhxwT3nHmAHZ9Q&branch=master)
|
|
|
|
|
2017-04-21 16:45:38 +00:00
|
|
|
This is a simple web app that I've build for an university projects.
|
|
|
|
It is supposed to retrieve and store results from outside and present them in a nice way.
|
|
|
|
The results are benchmarking tests that are run by the java application.
|
2017-04-11 20:23:47 +00:00
|
|
|
|
2017-04-17 10:56:12 +00:00
|
|
|
You will need **Python 2.6+ or Python 3.3+** to run this app.
|
|
|
|
Flask doesn't support Python 3.2.
|
2017-04-15 21:33:56 +00:00
|
|
|
|
2017-04-11 20:23:47 +00:00
|
|
|
It should provide a simple score board display
|
|
|
|
for some benchmarking data which is gathered from another application.
|
|
|
|
|
2017-04-13 14:01:38 +00:00
|
|
|
## Installing
|
|
|
|
|
2017-04-15 20:59:36 +00:00
|
|
|
To install and run the application, you must do the following:
|
|
|
|
|
2017-04-17 10:56:12 +00:00
|
|
|
Rename the config.lock.py to config.py, so you can safely modify the config.py and still have
|
|
|
|
config.lock.py as a template.
|
2017-04-13 14:02:26 +00:00
|
|
|
and update the file to match your configuration settings.
|
2017-04-13 14:01:38 +00:00
|
|
|
|
|
|
|
Then run:
|
|
|
|
|
2017-04-15 20:59:36 +00:00
|
|
|
```bash
|
2017-04-15 21:33:56 +00:00
|
|
|
pip install -r requirements.txt
|
2017-04-20 22:35:52 +00:00
|
|
|
python application.py
|
2017-04-13 14:01:38 +00:00
|
|
|
```
|
2017-04-21 15:49:53 +00:00
|
|
|
You may set BSFLASK_ENV environment variable to production, development or testing.
|
2017-04-15 21:31:42 +00:00
|
|
|
### Running Tests
|
2017-04-13 05:49:05 +00:00
|
|
|
|
2017-04-15 20:59:36 +00:00
|
|
|
In the root directory, run the following command:
|
2017-04-13 05:49:05 +00:00
|
|
|
|
2017-04-15 20:59:36 +00:00
|
|
|
```bash
|
|
|
|
python -m unittest
|
2017-04-13 06:04:51 +00:00
|
|
|
```
|