-
Notifications
You must be signed in to change notification settings - Fork 27
Development
Davide Miceli edited this page Jan 28, 2019
·
1 revision
At first, is required to start a dockerized environment for testing. To do this, run:
git clone https://github.com/davidemiceli/chainode.git
cd chainode/
DB=couchbase npm run start-dev-env
docker exec -it nodejs npm install
npm run create-dev-topics
npm run init-dbTo close the dockerized environment:
npm run stop-dev-envAfter dockerized environment is started, run unit tests:
docker exec -it nodejs npm testdocker exec -it nodejs /bin/bash -c "CONFIGS=/app/test/configs/generic.json npm start"The first time, install all required packages:
docker exec -it nodejs /bin/bash -c "cd web-console/frontend && npm install"Then, to build the frontend type:
for development mode
docker exec -it nodejs build-webconsole-devfor production
docker exec -it nodejs build-webconsole-prod