Setup With oCIS
Setting Up Web
-
Clone the repository.
-
Change to the
webdirectory of the repository (cd ocis/web). Run allpnpmcommands from there. -
Initally install all dependencies by running
pnpm install. -
Copy
config/config.json.sample-ocistoconfig/config.json(inside thewebdirectory) and adjust values if required.
Running Web
-
Start bundling web with a watcher by running
pnpm build:wfrom thewebdirectory. The bundle is written toweb/dist.
Setting Up oCIS
-
Setup oCIS by following the setup instructions
-
Start oCIS with local links to your bundled web frontend and config by running the following command from the
ocisfolder of the repository (where the oCIS binary is built tobin/ocis), adjust the paths as necessary:WEB_ASSET_CORE_PATH=../web/dist \ WEB_UI_CONFIG_FILE=../web/config/config.json \ OCIS_INSECURE=true \ IDM_CREATE_DEMO_USERS=true \ ./bin/ocis server
Start oCIS
-
Open
https://localhost:9200and accept the certificate. -
When signing in, use one of the available demo users.
-
Whenever code changes are made,
pnpm build:wrebuilds web and you need to manually reload the browser page (no hot module reloading).
Running Tests
For testing, please refer to the testing docs.