Anticrm Platform
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