updates to README

This commit is contained in:
Felix Hamann 2018-11-11 23:13:57 +01:00
parent 7bf3a52599
commit 05c4a5da2f

View File

@ -23,14 +23,17 @@ The following Description applies to Ubuntu or similar.
you'll get a prompt: you'll get a prompt:
``` ```
Enter name of role to add:` - [enter 'uniworx'] Enter name of role to add:` - uniworx
Shall the new role be a superuser? (y/n)` - [not exactly sure. Guess not?] Shall the new role be a superuser? (y/n)` - [not exactly sure. Guess not?]
Password: uniworx
...
``` ```
create database *uniworx*: create database *uniworx*:
`createdb uniworx` `createdb uniworx`
after you added the database switch back to your own user with `Ctrl + D`.
to access the database as user *uniworx* you now need to add a new linux-user called *uniworx*: to access the database as user *uniworx* you now need to add a new linux-user called *uniworx*. when you get asked for a password enter *uniworx*.
`sudo adduser uniworx` `sudo adduser uniworx`
log-in as new user *uniworx*: log-in as new user *uniworx*:
@ -52,6 +55,10 @@ The following Description applies to Ubuntu or similar.
Go ahead an install `libpq-dev` with Go ahead an install `libpq-dev` with
`sudo apt-get install libpq-dev` `sudo apt-get install libpq-dev`
Other packages you might need to install during this process:
`sudo apt-get install pkg-config`
`sudo apt-get install libsodium-dev`
Build the app: Build the app:
`stack build` `stack build`
@ -62,7 +69,7 @@ The following Description applies to Ubuntu or similar.
## Add Dumy-Data and run the app ## Add Dumy-Data and run the app
After building the app you can prepare the database and add some dummy data: After building the app you can prepare the database and add some dummy data:
`./fill-db.hs` `./db.sh -f`
Run the app: Run the app:
`./start.sh` `./start.sh`