This readme will explain to you, how to setup the project.
If you have any of the following tools already installed, you can skip the specific steps in the instructions.
You will need node to run this project. Node can be downloaded and installed here.
Truffel is needed to compile and deploy the smart contracts. To install it run npm install -g truffle
Ganache is used to run a local version of the etherum blockchain on your computer. To install it run npm install -g ganache-cli
React is needed to run the front end. To install it run npm install -g create-react-app
First you need to start the blockchain. Run ganache-cli
Now open another terminal window and move into the top level folder. Arriving there the next step is to deploy the smart contracts.
Run truffle migrate
to do so. If you want to reset everything on the blockchain, run truffel migrate --reset
.
Now move to the client folder.
If you do this the for the first time, you will need to run npm install
.
Also make sure that in the subfolder src
the symbolic link to contracts folder is working.
Now you can type in npm start
to start the frontend. It should automaticaly open a new tab on your default browser to show the frontend.