mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
local mocks and default back buttons
This commit is contained in:
committed by
Aiden McClelland
parent
098dc0a6d0
commit
c99b75c0b4
31
ui/README.md
31
ui/README.md
@@ -12,20 +12,8 @@ npm --version
|
||||
v8.0.0
|
||||
```
|
||||
|
||||
### Running The Mock Development Server
|
||||
|
||||
`git clone https://github.com/Start9Labs/ws-example.git`
|
||||
|
||||
`cd ws-example`
|
||||
|
||||
`git submodule update --init --recursive`
|
||||
|
||||
`cargo run -- -vvv -c example-config.toml`
|
||||
|
||||
### Building Embassy UI
|
||||
|
||||
**In a new terminal window, from `embassy-os/ui` run:**
|
||||
|
||||
`git clone https://github.com/Start9Labs/embassy-os.git`
|
||||
|
||||
`cd embassy-os`
|
||||
@@ -46,30 +34,13 @@ In `config.json`, edit the "mocks" section to look like the following:
|
||||
```
|
||||
"mocks": {
|
||||
"enabled": true,
|
||||
"connection": "ws",
|
||||
"rpcPort": "5959",
|
||||
"wsPort": "5960",
|
||||
"maskAs": "tor",
|
||||
"skipStartupAlerts": true
|
||||
}
|
||||
```
|
||||
|
||||
Valid values for "connection" are `ws` and `poll`.
|
||||
|
||||
Valid values for "maskAs" are `tor` and `lan`.
|
||||
|
||||
You can also enable or disable startup alerts.
|
||||
|
||||
**Start the client**
|
||||
**Start the development server**
|
||||
|
||||
`ionic serve`
|
||||
|
||||
### Updating Server Mocks
|
||||
|
||||
If you want to update mock data inside ws-example, you must do the following:
|
||||
|
||||
1. Stop the ws-example server
|
||||
1. In es-example, run `rm embassy.db`
|
||||
1. Delete `patch-db-cache` from your browser's Local Storage
|
||||
1. Restart ws-example
|
||||
1. Refresh the browser window
|
||||
|
||||
Reference in New Issue
Block a user