cobi.time:installation_guide
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| cobi.time:installation_guide [2023/10/12 10:18] – hbernhardt | cobi.time:installation_guide [2026/08/04 09:10] (current) – thuth | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ===== Requirements ===== | ===== Requirements ===== | ||
| - | * [[https:// | + | * Node.js Version 22.14.0 LTS |
| - | * Microsoft IIS (WebServer) | + | * Microsoft IIS (Web Server) |
| - | * [[https:// | + | * [[https:// |
| - | * SAP Business One ServiceLayer | + | * PostgreSQL Database |
| - | * SAP Business One 10 Patchlevel | + | * SAP Business One Service Layer |
| + | * SAP Business One 10 (Patch Level 2 or higher) | ||
| - | ===== Installation | + | ===== Preparation & Prerequisites |
| - | ==== NODE.js Installation ==== | + | ==== Node.js Installation ==== |
| - | Download the NODE.js LTS Version (See link in Requirements) | + | Download the LTS version of Node.js: \\ |
| + | [[https:// | ||
| + | Keep all default settings during | ||
| + | |||
| + | ---- | ||
| ==== IIS Installation ==== | ==== IIS Installation ==== | ||
| - | If Microsoft IIS is already installed | + | If Microsoft IIS is already installed, ensure that **Dynamic Content Compression** is enabled. \\ |
| + | Also verify whether IIS has already been installed: | ||
| - | Make sure Microsoft IIS is not installed: | + | \\\ |
| {{: | {{: | ||
| + | |||
| + | \\\ | ||
| If not, install Microsoft IIS: | If not, install Microsoft IIS: | ||
| + | |||
| + | \\\ | ||
| {{: | {{: | ||
| Line 29: | Line 39: | ||
| \\\ | \\\ | ||
| - | Picture 1: Add Roles or Features | + | Add Roles and Features: \\ |
| - | \\ | + | Click **Next** through the wizard steps: |
| - | Press Next: | + | \\\ |
| - | {{:5.png?500|}} | + | {{:5n.png?500|}} |
| \\\ | \\\ | ||
| - | Press Next: | + | {{:6n.png? |
| - | {{:6.png?500|}} | + | \\\ |
| + | |||
| + | {{:7n.png?500|}} | ||
| \\\ | \\\ | ||
| - | Press Next: | + | Select the **Web Server (IIS)** role. \\ |
| - | + | Under **Performance**, | |
| - | {{:7.png?500|}} | + | |
| \\\ | \\\ | ||
| - | |||
| - | Install Webserver IIS with standard Features (just click on Webserver) but also add under Performance: | ||
| {{: | {{: | ||
| Line 57: | Line 66: | ||
| \\\ | \\\ | ||
| - | Press next untill you get install. Then Install | + | Click **Next** and complete |
| + | A server | ||
| - | \\\ | + | ---- |
| - | ==== IIS Module | + | ==== IIS URL Rewrite |
| - | Install | + | After IIS has been installed successfully, |
| + | [[https:// | ||
| - | https:// | + | ---- |
| - | \\\ | + | ===== COBI.time Setup Wizard ===== |
| - | ==== COBI.time Installation ==== | + | Run the setup executable vX.X.X.X.exe as Administrator to start the installation wizard. |
| - | Install COBI.time via the Installation File which you get from us. COBI.time then gets installed to the standard folder: '' | + | ==== Step 1: Start the Setup ==== |
| - | Navigate to that folder and then edit the '' | + | Start the installation using the provided installer |
| + | {{:de: | ||
| - | \\\ | + | ---- |
| - | {{:4.png?450 |}} | + | ==== Step 2: Select Setup Language ==== |
| - | \\\ | + | (1) Select your preferred language (e.g., German or English) from the list. \\ |
| + | (2) Confirm with **OK**. | ||
| + | {{: | ||
| - | < | + | ---- |
| - | MODE=production (production or development – put it in production to minimize logs) | + | |
| - | PORT=62000 (specify any port here for COBI.time Backend) | + | |
| - | SAP_URL=https:// | + | |
| - | SAP_USER=manager (SAP User with indirect Access License or higher) | + | |
| - | SAP_PASSWORD=**** (SAP User Password) | + | |
| - | SAP_DB=SBODemoDE93 (SAP Database Name) | + | |
| - | SSLPass=1234 (Password for custom SSL Certificate. Leave 1234 if you don’t provide with an extra SSL Certificate) | + | |
| - | SECRET=iosncaonmwdo1! (Change to any random string for authorization token encryption) | + | |
| - | </ | + | |
| - | Don’t change any other fields! | + | ==== Step 3: PostgreSQL Configuration ==== |
| - | You have the possibility to change the SSL Certificate if you want to host COBI.time outside of your internal network | + | Enter the connection information for your PostgreSQL database (host, port, username, password, |
| + | Then click **Next**. \\ | ||
| + | {{: | ||
| - | \\\ | + | ---- |
| - | ==== COBI.time | + | ==== Step 4: SAP Service |
| - | Open Powershell as Administrator and navigate to: '' | + | (1) Enter the SAP Service Layer URL (e.g., http:// |
| + | (2) Enter the SAP username (e.g., manager). | ||
| + | (3) Enter the corresponding password. \\ | ||
| + | (4) Enter the exact SAP company database name (e.g., SBODemoDE). \\ | ||
| + | (5) Click **Test Connection** and ensure the message Login successful appears. \\ | ||
| + | (6) Click **Next**. \\ | ||
| + | {{: | ||
| - | Install a global NPM Package for Microsoft service creation with the command (Make sure NODE.JS LTS Version is installed. After new NODE.JS Installation restart powershell): | + | ---- |
| - | < | + | ==== Step 5: Select Installation Directory ==== |
| - | npm i -g qckwinsvc | + | |
| - | </ | + | |
| - | After that use that new package to install a COBI.time | + | Choose the installation path. By default, |
| + | Click **Next**. \\ | ||
| + | {{:de: | ||
| - | < | + | ---- |
| - | qckwinsvc | + | |
| - | </ | + | |
| - | If you install COBI.time to a different folder change the command accordingly. | + | ==== Step 6: Ready for Installation ==== |
| - | If you get an Powershell Execution Policy Error execute this Command beforehand: | + | Review your settings and click **Install** in the bottom-right corner. \\ |
| + | {{: | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ==== Step 7: Installation & Database Initialization ==== | ||
| + | |||
| + | The installation process takes approximately 5 to 15 minutes. \\ | ||
| + | Confirm the information window PostgreSQL installed and connection successful! by clicking **OK**. \\ | ||
| + | {{: | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ==== Step 8: Finish Setup ==== | ||
| + | |||
| + | Click **Finish** to close the wizard. \\ | ||
| + | {{: | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== Post Configuration & Service Setup ===== | ||
| + | |||
| + | ==== Configure the .env File ==== | ||
| + | |||
| + | Navigate to the folder C:\Program Files (x86)\COBI.time\server and open the .env file using a text editor with Administrator privileges: \\ | ||
| + | {{: | ||
| + | |||
| + | Verify the values. For productive use, adjust the following parameters: | ||
| < | < | ||
| - | Set-ExecutionPolicy RemoteSigned | + | MODE=production (Production or development mode. Set to production to minimize logging.) |
| + | PORT=62000 (Specify the backend port for COBI.time.) | ||
| + | SAP_URL=https:// | ||
| + | Replace localhost with the actual Service Layer IP address.) | ||
| + | SAP_USER=manager (SAP user with an indirect access license or higher.) | ||
| + | SAP_PASSWORD=**** (SAP user password.) | ||
| + | SAP_DB=SBODemoDE93 (SAP database name.) | ||
| + | SSLPass=1234 (Password for a custom SSL certificate. | ||
| + | Keep 1234 if you do not provide another SSL certificate.) | ||
| + | SECRET=iosncaonmwdo1! (Replace with any random string used for token encryption.) | ||
| </ | </ | ||
| - | \\\ | + | > **SSL Certificate Note:** If you want to use your own SSL certificate, |
| - | ==== IIS Configuration ==== | + | ---- |
| - | Open IIS-Manager: | + | ==== Install the COBI.time Service via PowerShell ==== |
| - | {{:8.png? | + | Open Windows PowerShell as Administrator and execute the following commands: |
| - | \\\ | + | (1) Change to the server directory: |
| - | Change the default Website to COBI.time | + | < |
| + | cd " | ||
| + | </ | ||
| - | \\ | + | (2) Install the Windows service helper package globally: |
| - | {{:9.png?550|}} | + | < |
| + | npm i -g qckwinsvc2 | ||
| + | </ | ||
| + | |||
| + | (3) Register and start the COBI.time service: | ||
| + | |||
| + | < | ||
| + | qckwinsvc2 install name=" | ||
| + | </ | ||
| \\ | \\ | ||
| + | {{: | ||
| - | Change | + | Ensure that the confirmation message `[INFO] Service COBI-time started.` appears at the end. |
| + | |||
| + | ---- | ||
| + | |||
| + | ==== Verify the Service in Windows Services ==== | ||
| + | |||
| + | Open the Windows Services Manager | ||
| + | Locate the **COBI-time** service and ensure that its status is **Running** and its startup type is set to **Automatic**. | ||
| \\\ | \\\ | ||
| - | {{:10.png?700|}} | + | {{:de: |
| - | \\ | + | \\\ |
| - | Open Server Certificates and add COBI.time Servercertificate to it: | + | ---- |
| - | {{: | + | ===== IIS Web Server Configuration ===== |
| - | \\ | + | 1. Open **Internet Information Services (IIS) Manager**. |
| - | Right Click -> Import | + | {{: |
| - | Select the .pfx from '' | + | 2. Select the **Default Web Site** and change the physical path to: \\ |
| + | `C:\Program Files (x86)\COBI.time\dist` | ||
| \\\ | \\\ | ||
| - | Edit the Default Web Site Binding Settings: | + | {{:9.png? |
| - | {{:12.png?300|}} | + | \\\ |
| + | |||
| + | {{:10.png?700|}} | ||
| \\\ | \\\ | ||
| - | Remove http from the list and add only https to it. Select the SSL Certificate which you just imported: | + | 3. **Import |
| + | * Open **Server Certificates**. | ||
| + | * Right-click → **Import...** | ||
| + | | ||
| - | {{:13.png?700|}} | + | \\\ |
| + | |||
| + | {{:11.png?700|}} | ||
| \\\ | \\\ | ||
| - | Important: SNI (Server Name Indication) must be ticked! | + | {{:12.png? |
| - | After this Step the COBI.time Website should be up and running under: '' | + | 4. **Adjust Site Bindings: |
| + | * Remove | ||
| + | * Add an HTTPS binding | ||
| + | * Important: Enable the **Require Server Name Indication (SNI)** option. | ||
| - | \\\ | + | {{: |
| + | |||
| + | ---- | ||
| - | ===== COBI.time Setup Website | + | ===== Configure |
| - | Navigate to: '' | + | Navigate to the folder `C:\Program Files (x86)\COBI.time\dist\cfg` and open the file `settings.js`. |
| {{: | {{: | ||
| - | \\\ | + | For the backend URL, enter the server IP address or hostname including the port configured in the `.env` file (e.g., `https:// |
| - | Change the URL to the Backend IP Address + Port which you specified in the '' | + | ---- |
| - | \\\ | + | ===== Initial Setup of COBI.time Data Structures (Web Setup) ===== |
| - | ===== COBI.time | + | > **Important: |
| - | Warning: | + | 1. Ensure that the **COBI-time** service is running. |
| - | Make sure the previously installed | + | 2. Open your browser and navigate |
| - | + | `https:// | |
| - | This site should display a changelog and every table COBI.time wants to create: | + | |
| {{: | {{: | ||
| - | \\\ | + | 3. The web setup will automatically guide you through the creation of the required SAP tables, fields, and initial data: |
| + | * **Create Tables:** Click **Execute**. Once completed, restart the **SAP Service Layer** and confirm with **OK**. | ||
| + | * **Create Fields:** Click **Execute** again. Restart the **SAP Service Layer** a second time and confirm with **OK**. | ||
| + | * **Import Initial Data:** Click **Execute** one final time. | ||
| - | Click on execute and wait until all tables have been created. COBI.time then asks you to restart the Service Layer. | + | {{:16.png?400|}} |
| - | After you have restarted | + | 4. After completion, |
| - | {{:16.png? | + | You can now log in using the default administrator credentials: |
| - | The Website will reload and you can now create the fields for the tables. After that it asks you to restart the service layer one more time. After restarting press on OK. The Website again should reload. After it has reloaded press execute one more time for the COBI.time initial data. Once it is done you can just press ok and the website will reload and you should be taken to the login page. If the automatic transfer to the login page does not work, just navigate to it manually: https:// | + | * **Username:** `admin` |
| + | * **Password:** `admin` | ||
| - | You have successfully installed COBI.time. You can now login as Administrator with: | + | > **Security Notice:** Change the administrator password immediately after the first login! |
| - | Username: admin | + | ==== PIN Activation (optional) ==== |
| - | Password: admin | + | To enable PIN entry in COBI.time, an activation password is required. |
| - | Make sure to change that password. | + | Prerequisite (Server): |
| + | On the server, a password | ||
| + | This password | ||
| - | \\ | + | Content example: |
| + | <file env .env> | ||
| + | PinLoginPassword=test | ||
| + | </ | ||
| ====== Uninstallation ====== | ====== Uninstallation ====== | ||
| Line 230: | Line 316: | ||
| After that you can just remove the COBI.time installation from your computer. | After that you can just remove the COBI.time installation from your computer. | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
cobi.time/installation_guide.1697098704.txt.gz · Last modified: by hbernhardt