Update README.md
This commit is contained in:
parent
c03e9fd400
commit
ad150fac42
28
README.md
28
README.md
@ -41,7 +41,7 @@ You'll get a prompt:
|
|||||||
|
|
||||||
```sh
|
```sh
|
||||||
Enter name of role to add: 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) y [user must be superuser to create extensions]
|
||||||
Password: uniworx
|
Password: uniworx
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
@ -89,18 +89,6 @@ $ sudo apt-get install pkg-config
|
|||||||
$ sudo apt-get install libsodium-dev
|
$ 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` & `npm`
|
||||||
Node and Npm are needed to compile the frontend.
|
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
|
$ 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
|
### Add dummy data to the database
|
||||||
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:
|
||||||
```sh
|
```sh
|
||||||
@ -118,7 +118,7 @@ $ ./db.sh -f
|
|||||||
|
|
||||||
## Run Uni2work
|
## Run Uni2work
|
||||||
```sh
|
```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.
|
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.
|
||||||
|
|||||||
Reference in New Issue
Block a user