docker-compose up
This will build the React application, run a NodeJS web server, an ethereum node on private ebloc network and a MongoDB instance. You can check the app on localhost
-
Install MongoDB
-
Install geth
-
Navigate into downloaded folder and do:
npm install
-
Setup your environment variables (Easiest way is to use .env file:
cp .env.example .env
)
bin/start-geth.sh
- This will start geth client (initialize if not already) on your with given network configuration. It uses
NETWORK_NAME
environment variable in.env
file. Network name can be one ofmain
(default ethereum blockchain),ebloc-poa
(our educational school network) andlocal
(for test purposes). If local, client will start mining automatically. - After geth instance started to run, blockchain will be stored in
blockchain/{NETWORK_NAME}
-
Run
npm run debug:server
. -
This will start to fetch transactions from geth client in chunks (200 blocks per time) and store the key informations of transactions into database. It will check new blocks every minute once synchronization is complete.
-
Run
npm run debug:client
-
This will run webpack and serve React application on
8080