All Projects → deciduously → roll

deciduously / roll

Licence: MIT license
RPG dice roller with both Rust CLI and ClojureScript Web interfaces

Programming Languages

rust
11053 projects
clojure
4091 projects
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to roll

actix-casbin-auth
Casbin Actix-web access control middleware
Stars: ✭ 40 (+185.71%)
Mutual labels:  actix, actix-web
breaking-point
BREAKING-POINT lets you quickly define and subscribe to screen (i.e. window) breakpoints in your re-frame application
Stars: ✭ 36 (+157.14%)
Mutual labels:  reagent, re-frame
Re Com
A ClojureScript library of reusable components for Reagent
Stars: ✭ 690 (+4828.57%)
Mutual labels:  reagent, re-frame
Re Frame 10x
A debugging dashboard for re-frame. X-ray vision as tooling.
Stars: ✭ 491 (+3407.14%)
Mutual labels:  reagent, re-frame
re-frame-semantic-ui-react-github-widget
Using semantic-ui-react with re-frame - sample project
Stars: ✭ 21 (+50%)
Mutual labels:  reagent, re-frame
Re Frame
A ClojureScript framework for building user interfaces, leveraging React
Stars: ✭ 4,980 (+35471.43%)
Mutual labels:  reagent, re-frame
Re Pollsive
Re-pollsive is a clojurescript library that handles polling events for re-frame applications
Stars: ✭ 27 (+92.86%)
Mutual labels:  reagent, re-frame
Lein template descjop
A Leiningen template(Clojure/ClojureScript Project) for Web based desktop application with Electron (atom-shell).
Stars: ✭ 394 (+2714.29%)
Mutual labels:  reagent, re-frame
compound
A micro structure for reframe data
Stars: ✭ 116 (+728.57%)
Mutual labels:  reagent, re-frame
Ventas
Clojure ecommerce platform
Stars: ✭ 114 (+714.29%)
Mutual labels:  reagent, re-frame
Re Frame Template
A Leiningen template for creating a re-frame application (client only)
Stars: ✭ 454 (+3142.86%)
Mutual labels:  reagent, re-frame
rust cms
使用Rust编写一个CMS(内容管理系统)可以做为个人博客,公司网站
Stars: ✭ 32 (+128.57%)
Mutual labels:  actix, actix-web
Conduit
Real world application built with ClojureScript + re-frame
Stars: ✭ 422 (+2914.29%)
Mutual labels:  reagent, re-frame
Cljfx
Declarative, functional and extensible wrapper of JavaFX inspired by better parts of react and re-frame
Stars: ✭ 624 (+4357.14%)
Mutual labels:  reagent, re-frame
Re Frisk
Take full control of re-frame app
Stars: ✭ 396 (+2728.57%)
Mutual labels:  reagent, re-frame
Tincture
Frontend development toolkit for ClojureScript
Stars: ✭ 24 (+71.43%)
Mutual labels:  reagent, re-frame
Kee Frame
re-frame with batteries included
Stars: ✭ 289 (+1964.29%)
Mutual labels:  reagent, re-frame
Status React
a free (libre) open source, mobile OS for Ethereum
Stars: ✭ 3,307 (+23521.43%)
Mutual labels:  reagent, re-frame
Gorilla Notebook
A clojure/clojurescript notebook application/-library based on Gorilla-REPL
Stars: ✭ 73 (+421.43%)
Mutual labels:  reagent, re-frame
re-frame-realword-example-app
Exemplary real world application built with Clojurescript and re-frame
Stars: ✭ 16 (+14.29%)
Mutual labels:  reagent, re-frame

roll

Build Status

Web and CLI interface to roll dice.

Usage

  • yarn dev and point browser to localhost:3449 for figwheel and watching the Rust backend. If you don't issue :cljs/quit at the REPL or you'll have to kill figwheel some other way.
  • yarn prod and point browser to localhost:8080 for the production build.
  • yarn demo for a dev server with no hot-reloading - point your browser to localhost:8080.

For EMACS/CIDER, run yarn emacs and then from Emacs invoke M-x cider-jack-in-clojurescript. You'll need to invoke (start-figwheel!). Further instructions can be found here.

The backend component also has two other CLI modes:

  • Invoke with repl as the first arg for a REPL which will evaluate commands in sequence separated by spaces and prompt for further input until a SIGINT.
  • Invoke with your command as space-separated arguments to run a single operation.

You can run the webserver directly via roll (cargo run) or roll serve (cargo run -- serve).

Command formats:

  • A list of valid rolls in XdX format, separated by spaces - 1d2 2d4 3d8
  • A list of string identifier to lookup in the item table - blello, blello, ian
  • A multiplier followed by either a list of valid rolls or a string identifier - 3 1d7, 3 1d8 2d9, 3 blello, 3 blello ian

The multiplier is a little buggy on the web side - it only rolls out the first trailing arg. Stay tuned.

Web server endpoints:

  • GET /roll/:cmd where :cmd is any of the above, but separated by slashes instead of spaces: /roll/1d6, /roll/2d8/3d9, /roll/3/10d20, /roll/9/blello/ian
  • GET /items returns all the items stored in db.sqlite
  • POST /item with an application/json request body like '{"name": "blaster","damage": "1d8"}' to insert that item into the DB

Dependencies

  • Stable rust 1.25.0+
  • Java JRE 1.8+
  • yarn
  • lein
  • cargo-watch

Libraries

Rust Crates

ClojureScript Libraries

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].