A lot of improvements
- Removed "refresh" buttons, please just refresh the entire site (less cluttered appearance) - Refined README on installation - Added more themes - Improved Dockerfile, now everything runs with production settings
This commit is contained in:
parent
19bbc337bf
commit
22ee2ca08d
12 changed files with 242 additions and 91 deletions
40
README.md
40
README.md
|
@ -18,41 +18,27 @@ Getting Dashboard to run is fairly simple and can be accomplished with two techn
|
|||
|
||||
1. Locally
|
||||
|
||||
**Prerequisites: node, npm, yarn**
|
||||
|
||||
To get Dashboard to run, just clone the repository, download the dependencies using yarn, then start using `yarn start`.
|
||||
|
||||
```
|
||||
git clone https://github.com/phntxx/dashboard.git
|
||||
cd dashboard
|
||||
yarn
|
||||
yarn build
|
||||
yarn serve:production
|
||||
$ git clone https://github.com/phntxx/dashboard.git
|
||||
$ cd dashboard/
|
||||
$ yarn
|
||||
$ yarn build
|
||||
$ yarn serve:production
|
||||
```
|
||||
|
||||
alternatively, if you want to work using static files (requires a rebuild for
|
||||
every change in the JSON-files), just replace `yarn start` with `yarn build`.
|
||||
Then you can copy the files inside the `build` directory onto the webroot of
|
||||
your webserver of choice.
|
||||
|
||||
2. Using Docker
|
||||
|
||||
Using Docker requires building the container manually. Fortunately, this can be accomplished fairly easily:
|
||||
|
||||
```
|
||||
git clone https://github.com/phntxx/dashboard.git
|
||||
cd dashboard
|
||||
docker build -t dashboard:1.0
|
||||
|
||||
docker run -d \
|
||||
-t \
|
||||
-p 3000:3000 \
|
||||
-v ./src/components/data:/app/src/components/data \
|
||||
dashboard:1.0
|
||||
$ git clone https://github.com/phntxx/dashboard.git
|
||||
$ cd dashboard/
|
||||
$ docker build -t dashboard:1.0 .
|
||||
$ docker run -d \
|
||||
-v $(pwd)/data:/app/data
|
||||
-p 3000:3000 \
|
||||
--name dashboard \
|
||||
dashboard:1.0
|
||||
```
|
||||
|
||||
**NOTE: The `-t` flag is very important, as the Dockerfile requires standard TTY.**
|
||||
|
||||
## Customization
|
||||
|
||||
Dashboard is designed to be customizable. Everything is handled using four .json-files, which can be found at /src/components/data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue