diff --git a/README.md b/README.md index 3ace9e7..d0bff38 100644 --- a/README.md +++ b/README.md @@ -96,3 +96,25 @@ iopaint run --model=lama --device=cpu \ When `--mask` is a path to a mask file, all images will be processed using this mask. You can see more information about the available models and plugins supported by IOPaint below. + +## Development + +Install [nodejs](https://nodejs.org/en), then install the front-end dependencies. + +```bash +git clone https://github.com/Sanster/IOPaint.git +cd IOPaint/web_app +npm install +``` + +Start front-end development environment +```bash +npm run dev +``` + +Start back-end service +```bash +python3 main.py --model lama +``` + +Then you can visit `http://localhost:5173/` for development. The front-end code will automatically update after being modified, but the back-end needs to restart the service after modifying the python code.