am35a / platform-1

Anticrm Platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 'john.appleseed@gmail.com' and 'brian.appleseed@gmail.com' 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/elasticsearch:7.13.1

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

About

Anticrm Platform

License:Eclipse Public License 2.0


Languages

Language:TypeScript 62.1%Language:Svelte 33.6%Language:JavaScript 2.4%Language:SCSS 1.4%Language:Shell 0.4%Language:HTML 0.1%Language:Dockerfile 0.1%