Sarafu Network is the premier dApp for interacting with CAV's (Community Asset Vouchers) and Commitment Pools.
Try it on https://sarafu.network
- Create customized CAV's
- Client-side wallet interface to interact with the Celo blockchain including sending transactions
- Create and connect
Paper Wallets - Transaction explorer for CAV's
- View detailed stats for all CAV's in the Sarafu Network realm
To get started, make sure you have the following prerequisites installed:
- Git
- Node.js (>= 20.0.0)
- Docker (>= 24.0.0)\
- tern
Clone the repo and cd it:
git clone https://github.com/grassrootseconomics/sarafu.network.git && cd sarafu.networkInstall NPM dependencies:
pnpm iStart postgres via Docker Compose:
cd dev
docker compose upUpdate env.local file:
cp .env.local.example .env.local
# Update any value that you would like to changePrepare DB:
In another folder, e.g. /tmp, clone cic-graph
git clone https://github.com/grassrootseconomics/cic-graph.git
cd migrations
GRAPH_DB_URL="postgresql://postgres:postgres@localhost:5432/cic_graph" tern migrateNote: You can use any SQL migration tool to run the migrations.
# You can run the SQL queries with your tool of choice
psql -h localhost -U postgres
# Password postgres
\c cic_graph
# Run the queriesStart the development server:
pnpm run devIf you have access to a redacted snapshot, you can restore the db with the command:
docker run -i -v dev_sarafu-network-pg:/volume --rm loomchild/volume-backup restore < graph.tar.bz2To run the app in a Docker container, uncomment the following in next.config.mjs:
// output: "standalone",
Then build the image and run it:
# Build the image
DOCKER=1 docker build -t sarafu-network .# Run the container
docker run -p 3000:3000 sarafu-network