-
Install truffle, Angular CLI and an Ethereum client. If you don't have a test environment
npm install -g truffle npm install -g @angular/cli npm install -g ganache-cli
-
Download the project.
git clone https://github.com/lonleylokle/cryptogame
-
Run your Ethereum client. For Ganache CLI:
ganache-cli
Note the mnemonic 12-word phrase printed on startup, you will need it later.
-
Install the dependencies and Compile and migrate your contracts, into the directory Blockchain using :
npm install
-
Change the port in truffle-config.js `change the port in truffle-config.js 8545 in windows the port is 7545 but in linux the defaul port is 8545
-
Navigate into the Frontend Directory
npm install & ng serve