mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
Merge pull request #583 from c9s/move-frontend-doc
doc: add frontend development setup doc
This commit is contained in:
commit
463c6ee01f
|
@ -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
|
||||
|
|
40
doc/development/frontend.md
Normal file
40
doc/development/frontend.md
Normal 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
|
||||
```
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user