demo-hub / testweave-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Testweave app

Electron app to facilitate the process of mounting the testweave local network to use the Testweave SDK. Heavily relies on testweave-docker.

Usage

Installation

Ubuntu

Download the files from https://arweave.net/M7IunZT3Y-AF1-KuL3_zs8PCJsg4PKHbyeyfXOZX8Fk/testweave.tar.xz (.AppImage and docker-compose.yml). The .AppImage and docker-compose.yml have to be on the same directory.

Make the app image executable

chmod a+x testweave-0.1.0.AppImage

Execute the app image

./testweave-0.1.0.AppImage

Windows

Download the files from https://arweave.net/_CUyFXyzyzXf37uBdY0kotWpK2VHUvmgkmTUwaqzOVQ/testweave.zip (.exe and docker-compose.yml). The .exe and docker-compose.yml have to be on the same directory. Run the .exe.

Workflow

When you start the app, it will check if docker and docker-compose are installed and, if not, it will install it. This feature only works on Unix OS for now. Then, it will check if you already have the local node running. Finally, with the switch presented on the user interface, you can turn the testweave network on and off.

Remarks

To do all this commands, the app uses mainly two packages: child_process and sudo-prompt. They are used to execute the docker and docker-compose commands. Docker needs sudo or administrator permissions to execute so sudo-prompt will ask for your permission every time it runs a command.

Roadmap

This is very much a WIP. The end goal would be to have something like Ganache for the Arweave ecosystem. I am working on improvements but it's important to have feedback from the community. Feel free to open issues/PRs or reach out to me on the Arweave Developer Discord, especifically on the #testweave channel.

Development

Project setup

npm install

Compiles and hot-reloads for development

Web

npm run serve

Electron

npm run electron:serve

Compiles and minifies for production

Web

npm run build

Electron

npm run electron:build

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

About


Languages

Language:Vue 76.3%Language:JavaScript 19.5%Language:HTML 4.2%