Git Product home page Git Product logo

basic-chat's Introduction

Holochain Basic Chat

A simple chat app designed to get new users up, running and developing on Holochain

Alt text

Get started using nix-shell

Nix shell is a way to set up a dev environment that is easy to replicate on different machines. See https://github.com/holochain/holonix for more info.

  • Install nix tooling on mac/linux
  curl https://nixos.org/nix/install | sh
  • Start a new nix-shell. This uses the local default.nix file to set up the correct versions of the holochain binaries and build tools.
  nix-shell
  • You should end up with a [nix-shell: prompt in your shell.

Building from Source

Holochain DNA

There are some helpers scripts in the root package.json for building, running and testing the holochain code.

npm run hc:build

or use the CLI directly

mkdir -p dna
cd dna-src
hc package -o ../dna/basic-chat.dna.json

Be careful! If you are trying to network with other agents it is best to distribute a single compiled dna file. Any differences in compiler configuration may lead to the DNA hash being different and the nodes will not be able to communicate.

UI

cd ui-src
npm install
npm start

Using with Holoscape

If you want to use Holoscape (and you definitely should!) you can build a Holoscape ready package by running

npm run hc:make-holoscape

You can then use the holoscape-bundle in the project root to install. Note: You most likely will need to change the DNA hash in the holoscape-bundle.toml file

Built With

A huge acknowledgement to Pusher for providing an open source React chat UI (https://github.com/pusher/react-slack-clone)

Authors

License

This project is licensed under the GPL-3 License - see the LICENSE.md file for details

basic-chat's People

Contributors

connoropolous avatar jeluard avatar lucksus avatar philipbeadle avatar thedavidmeister avatar willemolding avatar zo-el avatar

Watchers

 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.