A frontend client library for the DAOstack subgraph
(Project started using TypeScript Library Starter)
npm install --save @daostack/client
import Arc from '@daostack/client'
Get all services running:
docker-compose up graph-node
This command will build and start a graph instance, ganache, IPFS and postgresql.
Before being able to use these services, you need to deploy the DAOStack contracts and configure the graph node to listen to changes:
npm run setup-env
To run the tests, run:
npm run test
After you are done, run:
docker-compose down -v
If you update the subgraph dependency in package.json
, you must rebuild the containers and re-configure the graph node:
docker-compose build
npm run setup-env
npm run build
: Generate bundles and typings, create docsnpm run lint
: Lints codenpm run commit
: Commit using conventional commit style (husky will tell you to use it if you haven't ๐)