Skip to content
This repository has been archived by the owner on Nov 25, 2023. It is now read-only.

Latest commit

 

History

History
111 lines (70 loc) · 2.35 KB

README.md

File metadata and controls

111 lines (70 loc) · 2.35 KB

Anticrm Platform

Maintainability Test Coverage

Building project

Use NVM tool to install required nodejs version.

nvm install
nvm use

Install rush.js

npm install -g @microsoft/rush

Now we could do:

rush update

and we are ready.

Server

Hosting of platform as server is described in this section.

Workspace Initialization

Before using workspace please initialize a workspace, it could be done with

cd ./server/tools
rushx create-workspace {workspaceName}

It will import all transactions from model/all and put them into Workspace.

Generate Server Access token

Access token could be generated using server-cli generage-token command.

cd ./server/tools
rushx generate-token {accountId} {workspaceName}

Running server

cd ./server/server
rushx dev

After server is started, it will accept any incoming request for existing workspaces.

Running Dev server with auth/workspace

It will create workspace 'workspace' users '[email protected]' and '[email protected]' with passwords '123'. So login functionality could be used to test with different accounts.

cd ./dev/server
rushx dev

Running ElasticSearch in docker

docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" elasticsearch:7.13.4

Running Minio in docker

docker run -d -p 9000:9000 -p 9001:9001 \
  -v $(pwd)/dev/certificates/cert.crt:/root/.minio/certs/public.crt \
  -v $(pwd)/dev/certificates/cert.key:/root/.minio/certs/private.key \
  -v $(pwd)/dev/certificates/cert.crt:/root/.minio/certs/CAs/public.crt \
  minio/minio server /data \
  --console-address ":9001"

Run minin locally on macos

MINIO_ACCESS_KEY=minioadmin MINIO_SECRET_KEY=minioadmin minio server ./data --address=":9000"

Dev tasks

All dev required tasks could be execured from root of project using rushx tool.

Format all changed files

rushx format-diff

Lint all changed files

rushx lint-diff

Execute tests on modified projects

rushx test-diff