hashfx / calculator-aptos

A simple Calculator app on Aptos 🔮

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Calculator App on Aptos 🔮

Install on Linux

curl -fsSL "https://aptos.dev/scripts/install_cli.py" | python3

Verify Installation

aptos help

Initialisation of Project

  • mkdir calculator
  • cd calculator
  • aptos init
  • when prompted, type testnet and press Enter
  • enter your private key from Aptos Wallet (Petra)
  • create a move package aptos move init --name calculator_app
  • inside Move.toml, add your public wallet address in addresses field

Compile Move Script

  • aptos move compile

Deploy the Code

  • aptos move publish

Run the frontend

  • cd interface and npm install
  • create a .env file inside interface/
  • write two parameters in .env:
REACT_APP_MODULE_ADDRESS = "<your-public-wallet-address-of-input-private-key>"
REACT_APP_MODULE_NAME="calculator"

About

A simple Calculator app on Aptos 🔮


Languages

Language:TypeScript 72.0%Language:Move 13.0%Language:HTML 9.0%Language:CSS 6.0%