This repository contains the source code for the Inbox
smart contract written in Solidity. The Inbox
contract allows you to store and update a message on the Ethereum blockchain.
To deploy and interact with the Inbox
contract, you'll need the following:
-
Node.js: Ensure you have Node.js installed on your machine.
-
Ganache: Ganache is a personal blockchain for Ethereum development. You can download and install it from here.
-
Truffle: Truffle is a development environment, testing framework, and asset pipeline for Ethereum. Install it globally via npm by running:
npm install -g truffle
-
Clone this repository to your local machine:
git clone https://github.com/your-username/inbox-contract.git
-
Navigate to the project directory:
cd inbox-contract
-
Install dependencies:
npm install
-
Compile the contract:
truffle compile
-
Deploy the contract to your local Ganache blockchain:
truffle migrate --reset
-
Run the tests:
truffle test
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.