A minimal pedestal web app
- Start the application:
lein run-dev
* - Go to localhost:8080 to see:
Hello World!
- Read your app's source code at src/hello_world_service/service.clj. Explore the docs of functions that define routes and responses.
- Run your app's tests with
lein test
. Read the tests at test/hello_world_service/service_test.clj. - Learn more! See the Links section below.
* lein run-dev
automatically detects code changes. Alternatively, you can run in production mode
with lein run
.
Jetty-runner tests an actual war artifact inside a jetty server, instead of running with an embedded server.
lein jetty-runner target/hello-world.war
Use lein lock
to check the calculated dependencies against the stated transitive dependencies.
When updating direct dependencies, generate a new dependencies.lockifle with lein lock freshen
and check this file into source control.
To configure logging see config/logback.xml. By default, the app logs to stdout and logs/. To learn more about configuring Logback, read its documentation.