All Projects → lagenorhynque → duct.module.pedestal

lagenorhynque / duct.module.pedestal

Licence: EPL-1.0 license
Duct module for Pedestal, a library for building APIs/services in Clojure

Programming Languages

clojure
4091 projects
Makefile
30231 projects

Projects that are alternatives of or similar to duct.module.pedestal

protoc-plugin
A protoc compiler plugin for Clojure applications
Stars: ✭ 28 (+86.67%)
Mutual labels:  pedestal
scheduler.simple
A simple scheduler for Integrant
Stars: ✭ 19 (+26.67%)
Mutual labels:  duct
graph-demo
A simple demo using pathom, fulcro and crux
Stars: ✭ 48 (+220%)
Mutual labels:  pedestal
duct-figwheel-component
A component for running Figwheel
Stars: ✭ 18 (+20%)
Mutual labels:  duct
Pedestal
The Pedestal Server-side Libraries
Stars: ✭ 2,449 (+16226.67%)
Mutual labels:  pedestal

duct.module.pedestal

Clojars Project Circle CI codecov

A Duct module that adds a web server and useful interceptors of Pedestal to a configuration. This is an alternative to duct/module.web. The default service configuration is based on pedestal-service template.

Installation

To install, add the following to your project :dependencies:

[duct.module.pedestal "2.1.4"]

Usage

To add this module to your configuration, add a reference to :duct.module/pedestal (and :duct.server/pedestal if necessary):

{:duct.profile/base
 {:duct.core/project-ns some-api

  :duct.server/pedestal
  {:service #:io.pedestal.http{:routes #ig/ref :some-api.routes/routes
                               :port #duct/env ["SERVER_PORT" Int :or 8080]}}

  :some-api.routes/routes {,,,}}

 :duct.profile/dev   #duct/include "dev"
 :duct.profile/local #duct/include "local"
 :duct.profile/prod  {}

 :duct.module/pedestal {}}
  • :duct.module/pedestal can have two options:

  • :duct.server/pedestal can have two options:

Examples

License

Copyright © 2018-2019 Kent OHASHI

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

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