Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

README.md

pedestal-micro

A Leiningen template for building micro-services in Pedestal.

Creating a project

$ lein new pedestal-micro com.example/web-service

The generated project includes both a build.boot file (for boot, my preferred project manager) and, project.cl (for Leiningen).

The two are roughly equivalent, but I suggest you pick one, and discard the other.

Tasks

Task Boot Leiningen
Launch a REPL boot repl lein repl
Run Tests boot test lein test
Launch a server boot server lein run
Build a deployable JAR boot build lein uberjar

Building a Docker container

# With Leiningen
$ lein uberjar

# With Boot
$ boot build

$ sudo docker build .

What's next?

  • Scripts for building, tagging and deploying Docker containers (this includes automatically building an uberjar).
  • Better 12 Factor App logging support (currently only supervisord prints to STDOUT).

About

Template for creating micro-services in Pedestal

Resources

License

Packages

No packages published
You can’t perform that action at this time.