benchmark-scoreboard/README.md

50 lines
1.2 KiB
Markdown
Raw Normal View History

2017-04-11 20:26:09 +00:00
# scoreboard-benchmark
2017-04-11 20:23:47 +00:00
This is a simple web app used for an university projects.
2017-04-15 21:33:56 +00:00
You will need **Python 3.3** or greater to run this app.
Python 2 has not been tested.
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-13 14:01:38 +00:00
First, rename the config.lock.py to config.py
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
python setup.py install
nohup python application.py &
2017-04-13 14:01:38 +00:00
```
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-15 20:59:36 +00:00
## Posting data
You can post data using curl. There are no restrictions on whoever can post data.
```bash
2017-04-13 19:49:04 +00:00
curl -H "Content-Type: application/json" -X POST -d '{"gpu":"GPU DUMMY TEXT","cpu":"CPU DUMMY TEXT","log":"DETAILED LOG","score": 1}' http://localhost:5000/upload
```
2017-04-13 05:49:05 +00:00
2017-04-11 20:23:47 +00:00
## Milestones:
2017-04-13 14:07:44 +00:00
1. Make simple view which displays benchmarks. [Done 13 Apr 2017]
2017-04-15 20:59:36 +00:00
* Improve design [Done]
* Add about us page [?]
2017-04-16 23:21:12 +00:00
* Try to use a mysql database [Done]
2017-04-11 20:23:47 +00:00
2. Add user registration
3. Perfect