Skip to content

Commit 9d7433c

Browse files
committed
first commit
0 parents  commit 9d7433c

File tree

873 files changed

+234855
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

873 files changed

+234855
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.idea/tasks.xml
2+
.idea/workspace.xml
3+
vendor/
4+
etc/config.yml
5+

LICENSE

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# Statusengine UI
2+
Statusengine UI is a lightweight, responsive, modern web interface, you can use, to make your monitoring data visable.
3+
4+
It's build with AngularJS, communicating via a JSON API to be easy extendable and also has
5+
simple support to render performance data.
6+
7+
Visit the [documentation](https://statusengine.org/) for more information about Statusengine UI
8+
9+
## Install
10+
````
11+
apt-get install php-mysql php-ldap
12+
php5enmod ldap
13+
service apache2 restart
14+
composer install
15+
````
16+
17+
## Web server
18+
Point the document root of your web server to the `public` folder
19+
20+
## Create user to login
21+
To login, first of all you need to create a new user.
22+
23+
This example will show you, of how to create a new user:
24+
25+
`bin/Console.php users add --username=admin --password=admin`
26+
27+
Username: `admin`
28+
29+
Password: `admin`
30+
31+
Run `bin/Console.php users --help` to get more information.
32+
33+
You can also run the command without `--username` and `--password` to keep your password private and hidden from history.
34+
35+
Run `bin/Console.php users` to get a list of all users:
36+
37+
````
38+
+----------+--------------------------------------------------------------+
39+
| Username | Password |
40+
+----------+--------------------------------------------------------------+
41+
| admin | $2y$10$PzJ8sqeww/.eBz1xfiBCzeuBa5Y9ZwufEtElPt0QqlmlYNEXfDzK6 |
42+
| foobar | $2y$10$DQnPleIFrffDv3b6q3TeBei3oMju9n/C/m1KF.//IUnT2lDCOy/QG |
43+
+----------+--------------------------------------------------------------+
44+
````
45+
46+
## License
47+
GNU General Public License v3.0
48+
````
49+
Statusengine UI
50+
Copyright (C) 2016-2017 Daniel Ziegler
51+
52+
This program is free software: you can redistribute it and/or modify
53+
it under the terms of the GNU General Public License as published by
54+
the Free Software Foundation, either version 3 of the License, or
55+
(at your option) any later version.
56+
57+
This program is distributed in the hope that it will be useful,
58+
but WITHOUT ANY WARRANTY; without even the implied warranty of
59+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
60+
GNU General Public License for more details.
61+
62+
You should have received a copy of the GNU General Public License
63+
along with this program. If not, see <http://www.gnu.org/licenses/>.
64+
`````
65+
66+
## Used `bower` components
67+
To avoid compatibility issues, all `bower` components are pushed to the repository.
68+
69+
| Name | License |
70+
|---------------------------------------------------------------------------------------|---------------------------------------------------------------------------------|
71+
| [AngularJS](https://github.com/angular/angular.js) | MIT License |
72+
| [angular-bootstrap](http://angular-ui.github.io/bootstrap/) | MIT License |
73+
| [angular-scroll](https://github.com/oblador/angular-scroll) | MIT License |
74+
| [angular-ui-router](https://github.com/angular-ui/angular-ui-router-bower) | MIT License |
75+
| [animate.css](https://github.com/daneden/animate.css) | MIT License |
76+
| [bootstrap](https://github.com/twbs/bootstrap) | MIT License |
77+
| [chart.js](https://github.com/chartjs/Chart.js) | MIT License |
78+
| [font-awesome](https://github.com/FortAwesome/Font-Awesome) | [Font-Awesome#license](https://github.com/FortAwesome/Font-Awesome#license) |
79+
| [jquery](https://github.com/jquery/jquery) | [https://jquery.org/license/](https://jquery.org/license/) |
80+
| [ngInfiniteScroll](https://github.com/ng-infinite-scroll/ng-infinite-scroll-bower) | MIT License |
81+
| [noty](https://github.com/needim/noty) | MIT License |
82+
| [jQuery-Backgrounder](https://github.com/bigfolio/jQuery-Backgrounder) | MIT License |
83+

bin/Console.php

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/usr/bin/php
2+
<?php
3+
4+
/**
5+
* Statusengine UI
6+
* Copyright (C) 2016-2017 Daniel Ziegler
7+
* This program is free software: you can redistribute it and/or modify
8+
* it under the terms of the GNU General Public License as published by
9+
* the Free Software Foundation, either version 3 of the License, or
10+
* (at your option) any later version.
11+
*
12+
* This program is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU General Public License
18+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19+
*/
20+
21+
require __DIR__ . '/../vendor/autoload.php';
22+
define('DS', DIRECTORY_SEPARATOR);
23+
24+
$StatusengineConfig = new \Statusengine\Config();
25+
$StorageBackendSelector = new \Statusengine\StorageBackendSelector($StatusengineConfig);
26+
27+
28+
use Symfony\Component\Console\Application;
29+
30+
31+
$application = new Application();
32+
33+
34+
$application->add(new \Statusengine\Console\Users($StatusengineConfig, $StorageBackendSelector->getStorageBackend()));
35+
$application->run();

composer.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "Statusengine RESTful JSON API",
3+
"description": "A RESTful JSON API for the Statusengine data and frontend",
4+
"version": "2",
5+
"homepage": "https://statusengine.org/",
6+
"license": "GPLv3",
7+
"authors": [
8+
{
9+
"name": "Daniel Ziegler (nook24)",
10+
"role": "Developer"
11+
}
12+
],
13+
"support": {
14+
"issues": "https://github.com/statusengine/interface/issues",
15+
"source": "https://github.com/statusengine/interface"
16+
},
17+
18+
"require": {
19+
"php": ">=5.5.9",
20+
"ext-ldap": "*",
21+
"slim/slim": "^3.7",
22+
"symfony/yaml": "2.8",
23+
"symfony/console": "2.8",
24+
"crate/crate-dbal":"*",
25+
"crate/crate-pdo":">=0.6.0",
26+
"slim/csrf": "^0.8.1",
27+
"guzzlehttp/guzzle": "~6.0"
28+
},
29+
30+
"autoload": {
31+
"classmap": ["src/"]
32+
}
33+
}

0 commit comments

Comments
 (0)