doc: move frontend development setup doc

This commit is contained in:
c9s 2022-05-03 12:39:35 +08:00
parent d742aea633
commit 064fbd7fbe
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54
2 changed files with 40 additions and 7 deletions

View File

@ -557,13 +557,6 @@ streambook.BindStream(stream)
6. Push your changes to your fork.
7. Send a pull request.
### Setup frontend development environment
```sh
cd frontend
yarn install
```
### Testing Desktop App
for webview

View File

@ -0,0 +1,40 @@
### Setup frontend development environment
You will need yarn to install the dependencies:
```shell
npm install -g yarn
```
And you need next.js:
```shell
npm install -g next@11
```
The frontend files are in the `frontend/` directory:
```sh
cd frontend
```
Run `yarn install` to install the dependencies:
```shell
yarn install
```
Build and compile the frontend static files:
```shell
yarn export
```
To start development, use:
```shell
yarn dev
```