Tooling
Development Setup
Prerequisites
-
docker
-
docker-compose (if not already included in your docker installation)
-
pnpm
-
node
If you’re not using Docker Desktop, you might have to modify your /etc/hosts and add 127.0.0.1 host.docker.internal to make host.docker.internal links work.
Starting the Server
You can start the server by running docker-compose up ocis.
Note that the container needs a short while to start because it is waiting for tika to be initialized. This is the case as soon as the tika-service container has stopped running.
Building and Accessing Web
After the docker containers are running (and tika is being initialized), run pnpm build:w to build Web. This also includes hot-reloading after changes you make, although it will take a while to rebuild the project. See down below for some details on how to enable instant hot-reloading.
Now you can access Web via https://host.docker.internal:9200.
Using Instant Hot-Reload via Vite
To work with instant hot-reloading, you can also build Web by running pnpm vite. The port to access Web is slightly different then: https://host.docker.internal:9201. Also note that the initial page load may take a bit longer than usual. This is normal and to be expected.