Coder Social home page Coder Social logo

chat42's Introduction

chat42 Gitter

We have a demo deployed on IPFS. It uses a websocket connection to our test server on topiq.es. This is a simple web-chat application which leverages replikativ for its state management.

quick demo

chat42 consists of two parts, a client written with ClojureScript and om-next (react) that compiles into efficient Javascript, and a server written in Clojure that brokers communication between peers over a websocket. The server will be available for node.js soon and is only necessary to ensure a communication channel.

There is also a react native client.

It was initially created as a presentation for ClojureScript in our local JavaScript meetup.

Usage

You need to have Leiningen installed.

Client development

Just run figwheel and edit core.cljs as needed. If the replikativ parts are un clear, also have a look at the API walkthrough.

lein figwheel

This allows you to develop the client against our test server.

Server peer

If you want to persist and distribute your own state, run the server with:

lein run

The server will automatically connect to our new test net and dump potentially a few gigabytes to your disk. If you don't want this, comment out:

(connect! stage "ws://replikativ.io")

to

#_(connect! stage "ws://replikativ.io")

in core.clj

You also have to change the uri in core.cljs to make the client connect to your server and not the test server.

If you have any problems, questions or suggestions, please join our gitter chat.

License

Copyright © 2016-2017 Konrad Kühne, Christian Weilbach

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

chat42's People

Contributors

eroica avatar kordano avatar whilo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.