Commit 1cca1d19 authored by Christian Pointner's avatar Christian Pointner
Browse files

nicer Readme

parent b4f7f188
Pipeline #226 passed with stages
in 2 minutes and 17 seconds
......@@ -27,22 +27,22 @@ $ $GOPATH/bin/tank --config config.yaml run --listen localhost:8000
Check out the repository and build the daemon:
```sh
git clone gitlab.servus.at/autoradio/tank
cd tank
make
$ git clone gitlab.servus.at/autoradio/tank
$ cd tank
$ make
```
If you want to change the UI you need to regenerate the bindata assets and rebuild the daemon:
```sh
make ui
make
$ make ui
$ make
```
You may run the daemon using the following command:
```sh
./contrib/run.sh
$ ./contrib/run.sh
```
This is using ```contrib/sample-cfg.yaml``` and depends on a mysql or postgres server
......@@ -52,57 +52,47 @@ containers for this purpose.
### mysql
```sh
./contrib/mysql/run_server.sh
$ ./contrib/mysql/run_server.sh
```
Wait for the server to boot up and then initialize the database using a second terminal:
```sh
./contrib/mysql/run_client.sh
```
Type the following on the mysql command line:
```mysql
source init.sql
$ ./contrib/mysql/run_client.sh
mysql> source init.sql
```
This command can also be used to empty the database if you want to start with a new one.
After the daemon has ran the initial migrations you may check out the schema of the database:
```mysql
source info.sql
```sh
mysql> source info.sql
```
Once you are done with the database you can stop the server using:
```sh
./contrib/mysql/stop_server.sh
$ ./contrib/mysql/stop_server.sh
```
### postgres
```sh
./contrib/postgres/run_server.sh
$ ./contrib/postgres/run_server.sh
```
Wait for the server to boot up and then initialize the database using a second terminal:
```sh
./contrib/postgres/run_client.sh
```
Type the following on the command line:
```sh
psql < init.sql
$ ./contrib/postgres/run_client.sh
# psql < init.sql
```
This command can also be used to empty the database if you want to start with a new one.
After the daemon has ran the initial migrations you may check out the schema of the database:
```sh
psql < info.sql
# psql < info.sql
```
Once you are done with the database you can stop the server by pressing ```CTRL-C``` inside the
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment