https://github.com/The-Extra-Project/Gadius-CLI
:fishing_pole_and_fish: Submission for ethglobal paris hackathon, building Swiss knife to operate compute over data for geospatial data usecases.
https://github.com/The-Extra-Project/Gadius-CLI
Last synced: about 1 year ago
JSON representation
:fishing_pole_and_fish: Submission for ethglobal paris hackathon, building Swiss knife to operate compute over data for geospatial data usecases.
- Host: GitHub
- URL: https://github.com/The-Extra-Project/Gadius-CLI
- Owner: The-Extra-Project
- Created: 2023-07-21T23:59:39.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-09T09:24:13.000Z (almost 2 years ago)
- Last Synced: 2024-09-09T11:20:53.038Z (almost 2 years ago)
- Language: TypeScript
- Size: 2.24 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-lilypad - Gadus CLI - CLI package for running 3D surface reconstruction (Use Cases / Lilypad Community Modules)
README
# Gadius CLI: :fishing_pole_and_fish:
CLI for orchestrating jobs for geospatial analysis on onchain [COD](https://www.cod.cloud)) protocol network called [lilypad](). some other characterstics
- [ ] Able to build wallet, pay and instantiate the compute operations onchain.
- [ ] visualize the results of the surface reconstruction, citygml models etc.
## packages:
- CLI: This is the core package that implements the CLI for client in order to run the compute jobs as the wrapper on the lilypad-cli compute jobs or via the lilypad onchain adapter contracts.
- Contracts: This is WIP package that deploys and provides the api with the wrapper solidity contracts that interact directly with the lilypad onchain adapter contracts.
## Build instructions
### 1. From npm registry
> npm install @devextralabs/cli
Then setup the ENV variables in cli/.env file:
- RPC_URL (rpc url of the testnet)
- (private key of the testnet based account that has the testnet tokens)
### 2. (from source):
we have also provided integration with the localhosted bacalau testnet along w/ lilypad stack to test the scheduling and execution of the compute jobs. this will be done in 2 steps
1. clone the library with dependencies:
> git clone --recursive https://github.com/The-Extra-Project/Gadius-CLI
2. Go to the infra/lilypad folder in order to run the bash script that will setup the local [lilypad stack](https://github.com/bacalhau-project/lilypad/blob/main/CONTRIBUTING.md).
3. Copy the addresses of the deployed contract along w/ the RPC endpoint in the .env file
4. build the CLI package:
```
npx turbo build cli
```
5. run the command
```
cd apps/cli && npm run cli
```
### 3. API calls.
```bash
gadius create-cod-point -c / --coordinates --ipfs_shp_file
gadius create-cod-polygon -c --ipfs_shp_file --username
gadius create-job-cityGML -Y --obj_file -C
```