This repository contains a simple counter smart contract implemented in the Move programming language for the Aptos blockchain platform. Additionally, it includes a frontend React application to interact with the deployed smart contract.
The Counter smart contract allows users to increment and retrieve the current counter value. It is implemented using Move and deployed on the Aptos blockchain.
- Clone or download this repository.
- Install the necessary dependencies and set up your development environment for Move.
- Compile and deploy the Counter smart contract on the Aptos blockchain.
counter.move
: Contains the code for the Counter smart contract.
The frontend React application provides a user interface to interact with the deployed Counter smart contract.
- Navigate to the
frontend
directory. - Install dependencies by running
npm install
. - Configure the application to connect to your Aptos blockchain node.
- Start the React application by running
npm run dev
. - Access the application in your web browser at
http://localhost:5173
.
src/App.tsx
: Main entry point of the React application.- Other supporting files for styling, configurations, etc.
- Ensure you have the necessary permissions and configurations to interact with the Aptos blockchain.
- Make sure to replace placeholders with actual addresses, endpoints, and configurations as required.
- Install
Petra Wallet
to interact with the app and sign transactions. Preferred browser will be Brave Browser..
Feel free to contribute or enhance the functionality of this repository. For any issues or questions, please create an issue or contact me.