Code Monkey home page Code Monkey logo

c3-sdk-go-example-mattermost's Introduction

C3 Mattermost Example

This is a fork of the Mattermost open-source chat. You can think of it like an open-source Slack.

This fork incorporates the c3-skd-go, and incorporates some other changes in order to make the business logic deterministic.

Usage

In one terminal, spin up a C3 node. Be sure to first follow the pre-install requirements.

$ go get -u github.com/c3systems/c3-go
$ cd $GOPATH/github.com/c3systems/c3-go
$ c3-go generate key -o priv.pem
$ c3-go node start --pem=priv.pem --uri=/ip4/0.0.0.0/tcp/3330 --data-dir=~/.c3 --difficulty=5

Next, in another terminal build push this dApp to your local C3 network.

$ mkdir -p $GOPATH/src/github.com/c3systems
$ cd $GOPATH/src/github.com/c3systems
$ git clone [email protected]:c3systems/c3-sdk-go-example-mattermost.git
$ cd c3-sdk-go-example-mattermost

# build the image
$ docker build .

# push the dApp to C3
$ c3-go push $(docker images -q | grep -m1 "")

# send a genesis state
$ image=<docker image> peer=<c3 peer> genesis=true go run cmd/c3-frontend/main.go 

# run the dApp, locally
$ image=<docker image> peer=<c3 peer> genesis=false go run cmd/c3-frontend/main.go server --shouldNotListen=true

Finally navigate to http://localhost:8065/public/channels/town-square

c3-sdk-go-example-mattermost's People

Contributors

adam-hanna avatar asaadmahmood avatar ccbrown avatar coreyhulen avatar cpanato avatar crspeller avatar csduarte avatar davidlu1997 avatar dschalla avatar enahum avatar florianorben avatar golduniform avatar grundleborg avatar hanzei avatar hmhealey avatar it33 avatar jasonblais avatar jespino avatar jwilander avatar kaakaa avatar lfbrock avatar lieut-data avatar mishimi avatar mkraft avatar musikpolice avatar rgarmsen2295 avatar rodcorsi avatar saturninoabril avatar sig1nt avatar stasvovk avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.