2023-02-05 22:07:44 +00:00
|
|
|
# InvokeAI UI dev setup
|
2022-09-16 17:18:15 +00:00
|
|
|
|
2023-02-05 22:07:44 +00:00
|
|
|
The UI is in `invokeai/frontend`.
|
2022-09-18 07:33:09 +00:00
|
|
|
|
2023-02-05 22:07:44 +00:00
|
|
|
## Environment set up
|
2022-09-16 17:18:15 +00:00
|
|
|
|
2023-02-05 22:07:44 +00:00
|
|
|
Install [node](https://nodejs.org/en/download/) (includes npm) and
|
2022-09-18 07:33:09 +00:00
|
|
|
[yarn](https://yarnpkg.com/getting-started/install).
|
|
|
|
|
2023-02-05 22:07:44 +00:00
|
|
|
From `invokeai/frontend/` run `yarn install` to get everything set up.
|
2022-09-18 07:33:09 +00:00
|
|
|
|
2022-09-18 00:45:06 +00:00
|
|
|
## Dev
|
2022-09-16 17:18:15 +00:00
|
|
|
|
2023-02-05 22:07:44 +00:00
|
|
|
1. Start the dev server: `yarn dev`
|
|
|
|
2. Start the InvokeAI UI per usual: `invokeai --web`
|
|
|
|
3. Point your browser to the dev server address e.g. `http://localhost:5173/`
|
2022-09-16 17:18:15 +00:00
|
|
|
|
2023-02-05 22:07:44 +00:00
|
|
|
To build for dev: `yarn build-dev`
|
2022-09-16 17:18:15 +00:00
|
|
|
|
2023-02-07 11:08:00 +00:00
|
|
|
To build for production: `yarn build`
|