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.
Hosting of platform as server is described in this section.
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.
Access token could be generated using server-cli generage-token command.
cd ./server/tools
rushx generate-token {accountId} {workspaceName}
cd ./server/server
rushx dev
After server is started, it will accept any incoming request for existing workspaces.
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
docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" elasticsearch:7.13.4
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"
MINIO_ACCESS_KEY=minioadmin MINIO_SECRET_KEY=minioadmin minio server ./data --address=":9000"
All dev required tasks could be execured from root of project using rushx tool.
rushx format-diff
rushx lint-diff
rushx test-diff