Electron app to facilitate the process of mounting the testweave local network to use the Testweave SDK. Heavily relies on testweave-docker.
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
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.
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.
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.
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.
npm install
Web
npm run serve
Electron
npm run electron:serve
Web
npm run build
Electron
npm run electron:build
npm run lint