An open API service indexing awesome lists of open source software.

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 🔮

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"
```