- Clone Repository
git clone https://github.com/Doichain/dapp.git doichain-dapp; cd doichain-dapp/
- Install Docker and Docker Compose and run
docker-compose -f contrib/docker/regtest.yml up
to setup the development environment- mongo server running on port 28017 (db alice and db bob)
- bind (dns) server running (serving test domain ci-doichain.org with TXT records holding doichain public-key)
- mail server (smtp, pop) running on smtp port 25 (and pop3 for user alice and usr bob)
- Doichain node running for Alice
- Doichain node running for Bob
- Remark Doichain dApps for Alice and Bob - should not run inside docker compose because of performance issues. This is why we run both directly on different ports on the console
- Install Meteor from meteor.com
- Open a second terminal and start meteor for Bob (Confirmation dApp on port 4000)
meteor npm install
MONGO_URL=mongodb://localhost:28017/bob meteor run --settings contrib/settings/settings-bob.json --port 4000
- Open a third terminal and start meteor test with
meteor npm run regtest-alice
- If all tests ran successfully you can start developing while starting dApp of Alice
MONGO_URL=mongodb://localhost:28017/alice meteor run --settings contrib/settings/settings-alice.json --port 3000
- Use commands:
- connect to mongo db
docker-compose -f contrib/docker/regtest.yml exec regtest-mongo mongo alice
- check blockchain
docker-compose -f contrib/docker/regtest.yml exec alice doichain-cli -getinfo
- generate a block
docker-compose -f contrib/docker/regtest.yml exec alice doichain-cli generate 1
- connect to mail
- connect to bind
- connect to mongo db