metosin/maailma

Name: maailma

Owner: Metosin

Description: Opinionated environment variables library

Created: 2015-04-06 16:37:05.0

Updated: 2018-03-28 12:01:31.0

Pushed: 2018-03-28 12:02:07.0

Homepage: http://metosin.github.io/maailma/

Size: 87

Language: Clojure

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Maailma 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
Example
backend.system
require [maailma.core :as m]))

n system [override]
et [env (m/build-config
          (m/resource "config-defaults.edn")
          (m/env "prefix")
          (m/env-var "SERVER_PORT" [:http :port])
          (m/properties "prefix")
          (m/file "./config-local.edn")
          override)]
...))
Integrant example

Add reader options to resource and file calls:

load-namespaces
/build-config
(m/resource "config.edn" {:readers {'ig/ref ig/ref}})
(m/file "config-local.edn" {:readers {'ig/ref ig/ref}})))

(Not supported with read-config! function)

Notes
License

Copyright © 2015-2018 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.