GithubHelp home page GithubHelp logo

mikalv / akka.js-examples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from akka-js/akka.js-examples

0.0 3.0 0.0 3.48 MB

Examples written in Akka.js

Home Page: http://unicredit.github.io/akka.js-examples/

Scala 91.12% HTML 8.76% JavaScript 0.13%

akka.js-examples's Introduction

Akka.js Examples

Here we have a collection of examples on how you can use Akka.JS in the browser. Each description is followed by the commands to run to get the related example run.

You need of course sbt and node installed.

##Calculator

A port of the Coursera Functional Reactive Programming exercise (Scala.rx -> Akka.js)

$ cd calculator
$ sbt webUI/fastOptJS
$ $BROWSER web-ui/index.html

Chat-backend

An implementation of a server that broadcast messages over each connected websocket

JVM

$ cd chat-backend
$ sbt demoJVM/run

JS

$ cd chat-backend
$ npm install websocket
$ sbt demoJS/run

Chat-ui

A generic front end for a broadcast chat. Insert the url of the server you want to connect and then send your messages over websocket.

$ cd chat-ui
$ sbt demoJS/fullOptJS
$ $BROWSER ui/index.html

P2P-Chat

A Point to Point Chat serverless with manual key exchange over WebRTC. This is very experimental and could not work ... Please take inspiration from the code.

$ cd p2p-chat
$ sbt demoJS/fullOptJS
$ $BROWSER ui/index.html

PingPong

A very basic example that could run on Js or on JVM. This is a very good starting point to be used as template for new projects.

JVM

$ cd pingpong
$ sbt demoJVM/run

JS

$ cd pingpong
$ sbt demoJS/run

Raft

A basic implementation of the Raft algo taken from: archie As you can see it cross compile.

JVM

$ cd raft
$ sbt demoJVM/run

JS

$ cd raft
$ sbt demoJS/run

Streams

An example usage of akka streams. This is very bleeding edge but please go on and report any issue you find here!

JVM

$ cd streams
$ sbt demoJVM/run

JS

$ cd streams
$ sbt demoJS/run

ToDo

Here you can check possible integration with UI frameworks. Running it will show you a basic ToDo WebPage. This is a good starting point for projects that want to use Actor model to design Web UI.

$ cd todo
$ sbt demoJS/fullOptJS
$ $BROWSER ui/index.html

akka.js-examples's People

Contributors

andreatp avatar solomono avatar yawnt avatar

Watchers

 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.