Hello Contract (Truffle + Remote Node)
How to deploy and interact your own smart contracts using a remote node.
As Celo is fully EVM compatible, we inherit the rich developer ecosystem and tooling of the Ethereum community. You will be deploying a typical hello world smart contract onto the Alfajores testnet with the common Ethereum tool, Truffle.
This page is similar to the Hello Contracts page, but this one will connect to a remote node (Forno) and do key management in the Truffle project.
Setup
This guide assumes that you have a basic Node/NPM setup.
As you may know, Truffle is built for Ethereum developers. Because Celo has a similar network architecture and runs the Ethereum Virtual Machine, Celo developers are able to leverage many Ethereum developer tools. But it is important to keep in mind the differences. If you haven't already, please review the Celo overview.
Clone this Truffle project from GitHub to get started.
git clone https://github.com/critesjosh/hello_contract-truffle.git
This is a basic truffle project, with some additional files to help us with account management and deploying to a remote Celo test net node. Run npm install to install of the project dependencies.