Granary

Granary

  • Docs
  • Tutorials
  • API

›Contributing

Getting started

  • What & Why
  • Installation

API

  • CLI Commands
  • Configuration

Client

  • Using the client

Sandbox

  • Introduction
  • Activating a protocol

Contributing

  • Development environment
  • Updating the docs
  • Examples on how to contribute to Granary

Development environment

Setting up the development environment for contributing to Granary is easy. First you'll clone the repo, which is an obvious step. The fun part is having the same environment as every other developers, and the same as the CI. This is easily achievable thanks to Docker.

Starting a dockerized shell

You can spin up a dockerized shell environment, with ports exposed and the local $PWD mounted, using:

make contributors-shell

Building the docker image

stovelabs/granary-contributors is available at Docker Hub as well, which means you don't need to build it yourself before using it, feel free to skip this part, unless you know what you're doing

Granary CI setup & dev setup uses the same docker image for consistency purposes. You can build it using:

make contributors-build-image

Useful commands

Build the CLI

npm run build
npm run build:watch

Run tests

npm run test
npm run test:watch

Link the CLI executable for development

⚠️ Run this outside of the docker container, on your own machine. Might require sudo permissions for linking.

npm link 
granary --version
Last updated on 5/2/2019 by Matej Sima
← Activating a protocolUpdating the docs →
  • Starting a dockerized shell
  • Building the docker image
  • Useful commands
Docs
APIConfig
Community
Stack OverflowProject ChatTwitter
More
GitHubStar
Facebook Open Source
Copyright © 2019 Stove Labs
Icons made by Freepik and Smashicons from www.flaticon.com is licensed by CC 3.0 BY
Terminal window by nikitahl