32 lines
432 B
Markdown
32 lines
432 B
Markdown
# Data Frontend
|
|
|
|
## Setup domain
|
|
|
|
Modify the host file, like `/etc/hosts`, add this line:
|
|
|
|
```
|
|
127.0.0.1 data.local.zhishuyun.com
|
|
```
|
|
|
|
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
|
|
```
|
|
|
|
Then open `https://data.local.zhishuyun.com` to view the content.
|