Updated README

This commit is contained in:
Markus Thielen 2023-04-05 15:13:33 +02:00
parent 66bb390568
commit 757fd28756

View File

@ -74,7 +74,7 @@ systemctl postgresql reload
This repository contains an already compiled SQL file that creates the database schema:
```sh
psql -U bb_todo bb_todo < bbconf/todo_datamodel.sql # Enter password when prompted.
psql -U bb_todo bb_todo < bbconf/bb_todo-datamodel.sql # Enter password when prompted.
```
The database configuration and installation is now complete.
@ -82,7 +82,7 @@ The database configuration and installation is now complete.
If you're curious, you can recompile the GraphQL schema like so:
```sh
bin/bbconf --prefix=bb_todo -f todo_schema.graphql -o bbconf
basebox/bin/bbc --prefix=bb_todo -f vue-todo/bbconf/todo_schema.graphql -o vue-todo/bbconf
```
### Client Installation
@ -137,6 +137,18 @@ cd ~/basebox/vue-todo
npm run dev
```
This will start a node.js based HTTP test server that will host the client application. It will print the URL where you can load it to the console.
This will start a node.js based HTTP test server that will host the client application. It will print the URL where you can load it to the console:
```
VITE v4.1.4 ready in 273 ms
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
➜ press h to show help
```
**Important Note**: If the URL you are seeing uses *localhost*, you have to edit broker's config file accordingly. The value you have to change is `redirect_url`; replace "127.0.0.1" with "localhost".
Open your browser, go go the URL in the npm console, and enjoy.