https://github.com/hashfx/calculator-aptos
A simple Calculator app on Aptos 🔮
https://github.com/hashfx/calculator-aptos
Last synced: 3 days ago
JSON representation
A simple Calculator app on Aptos 🔮
- Host: GitHub
- URL: https://github.com/hashfx/calculator-aptos
- Owner: hashfx
- Created: 2024-07-20T15:30:36.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-28T11:12:38.000Z (almost 2 years ago)
- Last Synced: 2025-02-23T14:44:11.788Z (over 1 year ago)
- Language: TypeScript
- Size: 224 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 = ""
REACT_APP_MODULE_NAME="calculator"
```