This is an application for OSjs which can open and make document, presentation and spreadsheet files, supporting a wide range of extensions, using Collabora Online Development Edition (CODE) service.
1- Navigate to the following directory of OS.js project
cd src/packages2- Clone hosting application in this directory
git clone https://github.com/BurnaSmartLab/osjs-office-collabora.git3- Then navigate to cloned directory
cd osjs-office-collabora4- Run following command in the current directory to install dependencies
npm install5-Build office package in current directory
npm run build6- Run following command in root directory of OSjs project
npm run package:discover7- Run serve command in root directory of OSjs project
npm run serve
1- Execute the following command in OS.js root directory
npm install @burna/osjs-office-collabora2- Run following command in root directory of OSjs project
npm run package:discoverAdd following office and express config to src/server/config.js file of OSjs:
// Replace 'http://localhost:12345' with your valid Collabora server address
express:{
maxBodySize:'1000000kb'
},
office: {
collabora_online: 'http://localhost:12345'
},The office application is available in Office Menu of the OS.js 🎉
Run the following command to run Collabora, OSJS and osjs-office-collabora together:
docker compose up -dBe advised to change the collabora_online_URL and osjs_URL environments inside docker-compose.yml based on your local IP address.
After that the containers are up and running, you can access OSJS using your local IP address and the port specified (default 8000) like below:
http://<ip>:8000
Be advised to change <ip> with your own local IP address. In addition, every change to the osjs-office-collabora results in webpack build and server restart which makes it a very good choice for developing package inside the OSJS environment.
1- Grab the Docker image
docker pull collabora/code2- Start a new container, for example:
docker run -t -d -p 9980:9980 -e "extra_params=--o:ssl.enable=false" --privileged --volume "/usr/share/fonts/truetype/:/opt/collaboraoffice6.4/share/fonts/truetype/local/:ro" -e "username=admin" -e "password=admin" --name collabora --cap-add MKNOD collabora/codeHere is the step-by-step instructions
