Code Monkey home page Code Monkey logo

chat's Introduction

On MacOS

Requirements:

  1. Homebrew (https://brew.sh/)
  2. Stack, OpenSSL and c-ares (brew install haskell-stack openssl c-ares)
  3. Working DAML Dev Env (https://github.com/digital-asset/daml)
  4. gRPC v1.2.2 (https://github.com/grpc/grpc/blob/v1.22.x/BUILDING.md). Don't forget to check out the tag before building!
  5. Compiled Haskell Bindings (https://github.com/digital-asset/daml/tree/master/language-support/hs/bindings)
  6. Installed DAML SDK (https://docs.daml.com/getting-started/installation.html)

Building

  1. Copy the compiled bindings into the folder lib
  2. Build with stack build

Running

  1. Start Sandbox with daml sandbox
  2. Start chat clients with stack run chat-exe -- Alice, stack run chat-exe -- Bob and similar

Chat as Alice

Alice> :link Bob
linked: Bob
Alice> :link Nick
linked: Nick
Alice> ?
[Bob,Nick]
Alice> Hey to both of you

Chat as Dave

Dave> :link Edwina
linked: Edwina
Dave> ?
Edwina

Chat as Bob

linked: Alice
linked: Nick
Bob> ?
[Alice,Nick]
Bob> :link Dave
linked: Dave
linked: Edwina
Bob> ?
[Alice,Nick,Dave,Edwina]
Bob> Hey everyone

Chat as Nick

linked: Alice
linked: Bob
linked: Dave
linked: Edwina
Nick> ?
[Alice,Bob,Dave,Edwina]
Nick> Morning everybody
Nick> !Alice
Nick> (Alice) Who are Dave and Edwina?

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.