This template uses following versions
- Angular 17
- NgRx 17
- Hardhat 2.8
- Ethers 5.5
- Solidity 0.8.4
- Clone this repository
git clone [email protected]:esse-jacques-dansomon/blockchain-store.git
- Install dependencies
npm install
- Start the hardhat node
npx hardhat node
- Compile the smart contract
npx hardhat compile
- Deploy the smart contract to the testnet
npm run deploy:localhost
- Paste the contract address, you get on the command line, into src/environments/environment.ts
export const environment = {
// ...
contractAddress: '0x04215C89a6af0f7ed9103c48BaF6A8e19f119470',
// ...
};
- Run angular
ng serve
application and test the app under http://localhost:4200
- Run the tests
npx hardhat test