Messaging client is react typescript application for displaying and sending messages. This projects contains two main parts:
Documentation in Notion.
Deploymnet guide: https://www.notion.so/flashy-builder-3d/How-to-prepare-messaging-client-for-development-and-how-to-deploy-it-67ef4f073af4452cb4ff34cdb4359c78
IMPORTANT: Use node v24 (lts/krypton - https://nodejs.org/en/blog/release/v24.0.0)
npm run codegen apparently just works with node v24 (lts/krypton).
Before you run codegen make sure to
have messaging-service up and running with all sources mocked
mutations and queries created in src/graphql/mutations/ & src/graphql/queries/. Only then will the codegen generate all required functions and types.
Clone and run messaging service with all the mock environment variables set to true:
Copy the .env.example file as .env.
You can run npm run clean before the next step in order to get a full clean install.
npm install - Installs packages in: root, package and standalone folders.
npm run link-package - Link package to standalone. You need to execute this command after every npm install or npm run codegen (NOTE: this will ask your computers admin password)
npm start
visit http://localhost:3010/messages to see standalone containing package.
REMEMBER: to execute npm run codegen after schema update and after that npm run link-package before start.
You need to fill the following values in session storage to get authorized. This is an example of the values you must add if you are using messaging-service in your local:
projectId: 123
tenant: messaging-test
projectName: 1
organisation: organisation-test
clientType: core-client
apartmentId: 1
apartmentName: 1
token: 1
Following checks are made before commit:
npm run check-format - Checks the formatting against Prettier rules.npm run check-lint - Checks eslint rules.npm run test - Executes the unit tests./package/package.json.npm run pack - Package will be created to /package folder, which can then be installed in CoreClient for example.npm run link-package, before running npm start again.npm run publish - Runs tests and publish package to npm registry.cd packagenpm run test - This will run tests and watch changed files.npm run test:ci - This will run tests once and show test coverage.E2E are created with Cypress and can be run with npm run test:e2e command.
Content type
Image
Digest
sha256:dd44138f9…
Size
61.4 MB
Last updated
1 day ago
docker pull gbuildercom/messaging-client