phronmophobic / membrane-re-frame-example

A proof of concept to demonstrate using re-frame for desktop and terminal apps.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

membrane-re-frame-example

A proof of concept to demonstrate using re-frame on top of membrane for desktop and terminal apps.

The code is largely derived from https://github.com/day8/re-frame/tree/master/examples/todomvc. Except for some browser specific code, the subs, db, and events are the same.

Both the desktop and the terminal app fully share subs, db, and events. Each has their own view implementation.

Screenshots

Desktop

desktop

Terminal

terminal example

Usage

Desktop

$ lein run -m membrane-re-frame-example.views

Terminal

$ lein run -m membrane-re-frame-example.term-view

re-frame+membrane can be compiled using graalvm. To compile your terminal app using graalvm:

  1. Download and install graalvm
  2. Run lein uberjar
  3. Run lein native
  4. Run the terminal app ./target/membrane-re-frame-example

License

Copyright © 2020 Adrian

This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0.

This Source Code may also be made available under the following Secondary Licenses when the conditions for such availability set forth in the Eclipse Public License, v. 2.0 are satisfied: GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version, with the GNU Classpath Exception which is available at https://www.gnu.org/software/classpath/license.html.

About

A proof of concept to demonstrate using re-frame for desktop and terminal apps.

License:Eclipse Public License 2.0


Languages

Language:Clojure 100.0%