项目作者: lagenorhynque

项目描述 :
Duct example
高级语言: Clojure
项目地址: git://github.com/lagenorhynque/duct-example.git
创建时间: 2017-10-25T07:54:19Z
项目社区:https://github.com/lagenorhynque/duct-example

开源协议:

下载


duct-example

cf. Building Web Services with Duct

Developing

Setup

When you first clone this repository, run:

  1. lein duct setup

This will create files for local configuration, and prep your system
for the project.

Environment

To begin developing, start with a REPL.

  1. lein repl

Then load the development environment.

  1. user=> (dev)
  2. :loaded

Run go to prep and initiate the system.

  1. dev=> (go)
  2. :duct.server.http.jetty/starting-server {:port 3000}
  3. :initiated

By default this creates a web server at http://localhost:3000.

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

  1. dev=> (reset)
  2. :reloading (...)
  3. :resumed

Testing

Testing is fastest through the REPL, as you avoid environment startup
time.

  1. dev=> (test)
  2. ...

But you can also run tests through Leiningen.

  1. lein test

Copyright © 2017 FIXME