Govern Server

How to query data

Govern Server is exposing a GraphQL API that lets you fetch data related to your Govern DAOs. Have a look at the Govern Server API documentation for the list of types and queries you can use.

Directory structure

1
# The core server library, which will be in a separate package later.
2
# We should keep in mind that this part will eventually run in the
3
# browser, enabling the fully decentralized mode of Aragon Govern.
4
/src/core
5
6
# API endpoints are prefixed by “api-”. We’ll only have a GraphQL API at first,
7
# and a REST API will be added later. Each API server exposes a single start()
8
# function with its configuration as a parameter.
9
/src/api-graphql
Copied!

Docker container

Build a docker container and expose server on http://localhost:3000:
1
docker build . -t govern-server
2
docker run -it --rm -d -p 3000:3000 --name govern-server govern-server
Copied!
Remove the container:
1
docker stop govern-server
Copied!

CI/CD

Github Actions workflow server-ci-cd.yml builds and deploys a server container when creating v* tags in the master branch.
Deployments can be triggered using lerna:
1
yarn lerna version [ major | minor | patch ]
Copied!
Last modified 8d ago