Merge pull request #583 from c9s/move-frontend-doc

doc: add frontend development setup doc
This commit is contained in:
Yo-An Lin 2022-05-03 18:03:36 +08:00 committed by GitHub
commit 463c6ee01f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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. 6. Push your changes to your fork.
7. Send a pull request. 7. Send a pull request.
### Setup frontend development environment
```sh
cd frontend
yarn install
```
### Testing Desktop App ### Testing Desktop App
for webview 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
```