-
Notifications
You must be signed in to change notification settings - Fork 29
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-db
To close the dockerized environment:
npm run stop-dev-env
After dockerized environment is started, run unit tests:
docker exec -it nodejs npm test
docker 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-dev
for production
docker exec -it nodejs build-webconsole-prod