GithubHelp home page GithubHelp logo

lunatic-chat-gr's Introduction

A telnet chat server, built with Grain & Lunatic!

This is a port of https://github.com/lunatic-solutions/chat, with src/termite being a port of https://crates.io/crates/termion and src/tui being a port of https://crates.io/crates/tui (both of which will be spun out into their own standalone libraries)!

Screenshot of the telnet chat server

Using Lunatic processes, telnet commands are converted from raw bytes to nice data types, which are then processed and user to render the UI.

This was built using a preview version of the upcoming Grain v0.6 release—there are bugs and some things may still change before the official release!

Building and running

You'll need a preview version of Grain v0.6, which you can obtain from the Grain website or by building Grain from source.

In a directory next to the directory where you've cloned this chat, clone https://github.com/grain-lang/lunatic-gr.

Once that's all set, you can run make to build chat.wasm.

To run the server, you'll need Lunatic v0.12—with Lunatic installed, run lunatic chat.wasm <port>.

To connect to the server, you'll need a telnet client. There may already be a telnet client on your machine, but if not, on macOS you can install one with brew install telnet. Run telnet localhost <port> to connect!

lunatic-chat-gr's People

Contributors

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