update readme
This commit is contained in:
1 parent
e43d40d76e
commit
f010e73497
1 file changed
+7
-17
@@ -1,31 +1,21 @@
|
||||
# Data Frontend
|
||||
|
||||
## Setup domain
|
||||
### Installation
|
||||
|
||||
Modify the host file, like `/etc/hosts`, add this line:
|
||||
Install `yarn`
|
||||
|
||||
### Build
|
||||
|
||||
```
|
||||
127.0.0.1 chat.local.zhishuyun.com
|
||||
yarn
|
||||
```
|
||||
|
||||
Then save it.
|
||||
|
||||
### Generate certs
|
||||
|
||||
Run below command to generate certs:
|
||||
|
||||
```
|
||||
yarn run init:https
|
||||
```
|
||||
|
||||
Then install the `.crt` file and trust it.
|
||||
|
||||
### Start server
|
||||
|
||||
Run below command to start local server:
|
||||
|
||||
```
|
||||
sudo yarn start
|
||||
yarn start
|
||||
```
|
||||
|
||||
Then open `https://chat.local.zhishuyun.com` to view the content.
|
||||
Then open `http://localhost:8080/chat/conversation` to view the content.
|
||||
Reference in new issue
Block a user