metosin/palikka

Name: palikka

Owner: Metosin

Description: Opinionated component library

Created: 2015-04-02 13:46:22.0

Updated: 2018-01-17 05:24:00.0

Pushed: 2018-01-26 14:35:20.0

Homepage: http://metosin.github.io/palikka/palikka.core.html

Size: 138

Language: Clojure

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Palikka Build Status

Clojars Project

API Docs.

Project statement

Unlike more general of our libraries (like compojure-api and ring-swagger) this project is primarily intended for use in Metosin's projects. Feel free to use, but don't expect full support.

Features
Differences to System
Example
n base-system [override]
et [env (m/build-config
          (m/resource "config-defaults.edn")
          (m/file "./config-local.edn"))
    create-handler (fn [system]
                     (-> (create-handler system)
                         (wrap-context system)))]
(component/system-map
  :mongo        (-> (mongo/create (:mongo env))
                    (providing {:db :db, :gfs :gfs}))
  :http         (-> (http-kit/create (:http env) {:fn create-handler})
                    ; Though components are accessed through context,
                    ; complete system map is needed for creating the context
                    (using [:mongo]))
  :nrepl        (nrepl/create (:nrepl env)))))
Component dependencies

This library doesn't depend on libraries used by components, depend on these on your project.

License

Copyright © 2015-2016 Metosin Oy

Distributed under the Eclipse Public License, the same as Clojure.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.