Roll
Roll — backend for Clojure
Install / Use
/learn @dimovich/RollREADME
Roll framework
<br>roll /ˈrōl/
informal. to begin to move or operate; start; commence. Let's roll at sunrise.
Roll makes it easy for your project to include a Webserver (Http-kit or Aleph), Websockets (Sente), REPL (nREPL), Routing (Reitit), Task Scheduling (Chime), File Watching (Hawk) and Logging (Timbre). Configure and manage them using a simple config file (Integrant).
<br>Leiningen
roll is published on Clojars.
Add the following to your project.clj's :dependencies:
[dimovich/roll "0.3.337"]
Clojure CLI/deps.edn
dimovich/roll {:mvn/version "0.3.337"}
Example
(To run this you'll need to install Clojure CLI tools.) <br><br>
deps.edn
{:paths ["src"]
:deps {dimovich/roll {:mvn/version "0.3.337"}}}
config.edn
{:roll/httpkit {:port 5000}
:roll/handler {:routes [["/" example.server/index]]}}
src/example/server.clj
(ns example.server
(:require [roll.core]))
(defn index [req]
{:status 200 :body "Hello World!"})
(defn -main []
(roll.core/init "config.edn"))
Start
clj -m example.server
Navigate to localhost:5000.
<br>Example Projects
Basic and Descryptors.
<br>For all possible options see config.edn.
For Aleph support see this git branch.
Related Skills
node-connect
352.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
