From ad150fac42091fb9955f67b5b6a3ceb1b35e0844 Mon Sep 17 00:00:00 2001 From: Sarah Vaupel Date: Wed, 25 Sep 2019 11:22:23 +0200 Subject: [PATCH 1/2] Update README.md --- README.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index f61775faa..355dc3a7f 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ You'll get a prompt: ```sh 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) y [user must be superuser to create extensions] Password: uniworx ... ``` @@ -89,18 +89,6 @@ $ sudo apt-get install pkg-config $ sudo apt-get install libsodium-dev ``` -Build the app: -```sh -$ stack build -``` - -This might take a few minutes... if not hours... be prepared. - -install yesod: -```sh -$ stack install yesod-bin --install-ghc -``` - ### `Node` & `npm` Node and Npm are needed to compile the frontend. @@ -110,6 +98,18 @@ $ curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - $ sudo apt-get install -y nodejs ``` +Build the app: +```sh +$ npm run build +``` + +This might take a few minutes... if not hours... be prepared. + +install yesod: +```sh +$ stack install yesod-bin --install-ghc +``` + ### Add dummy data to the database After building the app you can prepare the database and add some dummy data: ```sh @@ -118,7 +118,7 @@ $ ./db.sh -f ## Run Uni2work ```sh -$ npm start +$ npm run start ``` This will compile both frontend and backend and will start Uni2work in development mode (might take a few minutes the first time). It will keep running and will watch any file changes to automatically re-compile the application if necessary. From 72c7e52071ccec6d8c5b261088d065cd15fc4644 Mon Sep 17 00:00:00 2001 From: Sarah Vaupel Date: Wed, 25 Sep 2019 12:16:55 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 355dc3a7f..685041baa 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,14 @@ The following description applies to Ubuntu and similar debian based Linux distr ## Prerequisites These are the things you need to do/install before you can get started working on Uni2work. +### Install german locale +You will need to install the german locale at compile time. + +Install: + +- Edit `/etc/locale.gen` as root and uncomment/add the line `de_DE.UTF-8 UTF-8` +- Save the file and run `sudo locale-gen` + ### Clone repository Clone this repository and navigate into it ```sh