https://github.com/loomnetwork/EthDeploy
Ethdeploy is a platform for spinning up cloud based blockchains. Unrelated to dAppChains
https://github.com/loomnetwork/EthDeploy
Last synced: about 1 year ago
JSON representation
Ethdeploy is a platform for spinning up cloud based blockchains. Unrelated to dAppChains
- Host: GitHub
- URL: https://github.com/loomnetwork/EthDeploy
- Owner: loomnetwork
- License: gpl-3.0
- Created: 2017-10-09T11:36:48.000Z (over 8 years ago)
- Default Branch: staging
- Last Pushed: 2023-03-01T15:23:42.000Z (over 3 years ago)
- Last Synced: 2024-11-06T12:59:56.941Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://loomx.io
- Size: 11.4 MB
- Stars: 43
- Watchers: 15
- Forks: 13
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# EthDeploy
Ethdeploy is a system that allows for cloud based 'staging' or 'development' environments for blockchains. The actual service is in private beta. Its simply an easy way for people to have a private Ethereum blockchain, since Ropsten Test network can be unstable at times. It is written in Go with a pure JS frontend. It requires Kubernetes to run, older builds supported Nomad but that is no longer supported.
This project is only lightly updated, as we are currently focused on dAppChain tech. The code is licensed under GPLv3.
# API Server
Simple Rest API using gin(framework) & gorm(orm)
server runs at http://localhost:8080
### Setup
```bash
glide install
mysql -u root -p -e "create database loom"
go get github.com/loomnetwork/fresh
```
__For Local Development__
Install hot reload server
```bash
go get fresh
```
### Run
Without hot reloading
```bash
LOG_LEVEL=debug BETA_MODE=true INVITE_MODE=false go run main.go
```
With hot reloading
```bash
fresh
```
asset pipeline
```
gulp #to compile it once
gulp watch #to do autoreload
```
## config options
Beta mode disables security and opens all features even just uncompleted ones
```
BETA_MODE=true
```
Invite mode requires people to be whitelisted before they can login
```
INVITE_MODE=false
```
## Web3 proxy info
to get public/private keys
```
curl -XPOST localhost:8081/_loom/accounts
```
to make web3 requests
```
curl -X POST --data '{"jsonrpc":"2.0","method":"web3_clientVersion","params":[],"id":67}' localhost:8081/
```
###to run in fresh
first time
```
mkdir -p tmp
rm -rf tmp/testrpc ; true
cd tmp
git clone https://github.com/loomnetwork/testrpc.git
cd testrpc
git checkout save-keys
cd ..
cd ..
```
after that
```
fresh -c proxy_runner.conf
```
or
```
PRIVATE_KEY_JSON_PATH=tmp/testrpc/data.json SPAWN_NETWORK="/usr/local/bin/node tmp/testrpc/build/cli.node.js" PRE_KILL=true go run cmd/rpc_proxy/rpc_proxy.go
```