Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 1.31 KB

README.md

File metadata and controls

54 lines (35 loc) · 1.31 KB

kchat-webapp

Infomaniak fork of the mattermost web client modified to work with our internal API as part of the kSuite.

⚠️ This project is still in beta.

Running the project

Prerequisites

  • Node 16
  • Yarn

Environment

Add an NPM_TOKEN env var with a Github token (read:packages scope)

Create a .env file with the following variables

WEBCOMPONENT_ENDPOINT=https://web-components.storage.infomaniak.com/current
WEBCOMPONENT_API_ENDPOINT=https://welcome.infomaniak.com
MANAGER_ENDPOINT=https://manager.infomaniak.com
LOGIN_ENDPOINT=https://login.infomaniak.com

Hosts

Modify your hosts file located at /etc/hosts and add this line : 127.0.0.1 infomaniak.local.preprod.dev.infomaniak.ch

Must be done, otherwise your application won't be able to read cookies set to infomaniak.com

Installing and building dependencies

We are using yarn berry with workspace tools for monorepo support building and better module caching between builds

yarn
yarn workspace @infomaniak/mattermost-types build
yarn workspace @infomaniak/mattermost-client build
yarn workspace @mattermost/components build

Running with webpack dev server

export $(xargs < ./.env) && yarn dev-server:webapp

Running prod build

export $(xargs < ./.env) && yarn build:webapp