Skip to content

A small library that lets you run a ring server application developed in a Polylith workspace.

Notifications You must be signed in to change notification settings

furkan3ayraktar/polylith-clj-deps-ring

Repository files navigation

Polylith - Clojure Deps Ring Plugin

This plugin lets you run a ring server application developed in a Polylith workspace.

Usage

Add the following alias to your deps.edn file in the root of your Polylith workspace:

:ring {:extra-deps {furkan3ayraktar/polylith-clj-deps-ring
                    {:git/url   "https://github.com/furkan3ayraktar/polylith-clj-deps-ring.git"
                     :sha       "LATEST"
                     :deps/root "projects/core"}}

       :main-opts  ["-m" "polylith.clj-deps-ring.cli.main"]}

In the configuration above, update the :sha with the latest sha from this repository. Also do not forget to replace PROJ_NAME with your project's name that is a ring server application. Once you have the alias run:

clj -M:ring start PROJ_NAME

During development

The plugin allows you to run a ring server from your REPL as well. In order to run the server from your REPL, include the dependency and run:

(require '[polylith.clj-deps-ring.ring-server.interface :as ring-server])

(ring-server/start! "PROJ_NAME")

To stop a running server:

(require '[polylith.clj-deps-ring.ring-server.interface :as ring-server])

(ring-server/stop! "PROJ_NAME")

About

A small library that lets you run a ring server application developed in a Polylith workspace.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published