Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 1.04 KB

File metadata and controls

22 lines (17 loc) · 1.04 KB

org.clojars.majorcluster/diplomat-http-w-postgresql-service

Clojars Project

A Leiningen template for generating a diplomat-architecture styled pedestal service The ports available at this template are:

  • http inbound, having foo route specified as a sample
  • postgresql db outbound
    • change connections at ports/postgresql/core or use a customized proper way to load configs
    • modify initial scripts at resource/migrations, create db and initial tables and run it on database created

Usage

Using the template from clojars:
lein new org.clojars.majorcluster/diplomat-http-w-postgresql-service

Development

Testing locally:
lein new diplomat-http-w-postgresql-service curl -H "x-token: dobrou noc" -X GET localhost:8080/events

Deploying:
export GPG_TTY=$(tty) && lein deploy clojars