Skip to content

A toy payment system in Clojure/ClojureScript, based on Duct.

Notifications You must be signed in to change notification settings

jstaffans/pay-me

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pay-me

Pay-Me is a small example of a dummy payment provider service, built with Clojure and Duct. The different components are hooked up using core/async channels.

Developing

$> lein cljsbuild auto

and

lein repl
user=> (go)

The service now runs on http://localhost:3000.

When you make changes to your source files, use reset to reload any modified files and restart the server.

user=> (reset)
:reloading (...)
:started

Deployment

Use lein uberimage to package the service as a Docker image. Note that the uberimage plugin expects the Docker API to be available on http://127.0.0.1:2375. At least on OS X, a workaround is necessary to expose the API.

When running in the Docker container, the application is started using a shell script. Logging is redirected to /var/log/pay-me/pay-me.log. This is simply because this is the pattern of logging I tend to follow when deploying Docker containers (gather logs on host, store them somewhere).

About

A toy payment system in Clojure/ClojureScript, based on Duct.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published