This is project is related with express + ethereum, the main idea is to create an endpoint to interact with the smart contract named SimpleContract deployed in the ethereum network.
- Express
- TypeScript
- Web3
- Truffle (for smart contract development and deployment) You can use Remix as well.
- Ganache (for local development)
npm install
npm run dev
-
Install Ganache
npm install -g ganache -
Run Ganache
This will run a local blockchain in your machine. You can see the accounts and private keys in the console and the local blockchain will be running in the port 8545.
ganache-cli
Also you can use hardhat to run a local blockchain, you can find more information here. Currently Ganache and Truffle are deprecated. Hardhat is the new tool for smart contract development.