Skip to content

ethui/stacks

Repository files navigation

Ethui Stacks

A self-hosted, open-source API for web3 stacks.

Warning

This repo is freshly published. Maintenance is ongoing, and bugs are expected.

ethui Stacks can be used either locally or remotely, to provide teams with a full-features tech stack for web3 development:

  • anvil node
  • subgraph deployment
  • IPFS
  • explorer

Use it to:

  • avoid the boilerplate of setting up full-stack development for web3 projects
  • set up a private or public testnet for your projects
  • create a shared environment without all the hassles fo public testnets

Project Structure

This monorepo contains:

  • server/ - Elixir/Phoenix API server
  • frontend/ - React/TypeScript frontend application
  • bruno/ - API testing collection

Running locally

Server (API)

cd server
mix setup              # Install dependencies
mix ecto.create        # Create database
mix ecto.migrate       # Run migrations
mix phx.server         # Start server

Or use the setup script:

npm run setup          # Install deps + setup database
npm run dev:server     # Start server

Frontend

cd frontend
npm install
npm run dev

Docker (Full Stack)

docker build -t ethui-stacks .

docker run -v $HOME/.config/ethui/stacks/local:$HOME/.config/ethui/stacks/local -e DATA_ROOT=$HOME/.config/ethui/stacks/local -v /var/run/docker.sock:/var/run/docker.sock --init -p 4000:4000 --name=ethui-stacks ethui-stacks

Running hosted service

Warning

Soon available at https://stacks.ethui.dev

How to use

1. Create a new stack

curl -X POST -d '{"slug": "foo"}' http://api.local.ethui.dev:4000/stacks

2. Access individual services via their subdomain

Releases

No releases published

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •