- Install NodeJS>=14.x.
- Install the dependencies of this project via
npm install
.
- Point the API base path to an endpoint of the StyleGAN2 Interactive Webclient API.
- This can be the bundled api server (The bundled api server can be started by following it's README).
- Run the webclient with
npm run dev
. - Open
http://localhost:3000
in a webbrowser.
- Export the webclient with
npm run export
. - The exported files can be found here:
__sapper__/export
.- If you export the client the API basepath is automatically set to the same host the webpage is served from.
- add the
--basepath <subdirectory>
flag to thenpm run export
command - uncomment the line annotated with
basepath for serving from subdirectory
in theserver.ts
file- change the basepath to your subdirectory