Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 1008 Bytes

README.org

File metadata and controls

46 lines (36 loc) · 1008 Bytes

HttpClojuric

Content

Introduction

Testing webserver with HTTPKit and Reitit, versus some other frameworks

Get it up

Prerequisites: Java 8 or 11

Install all the deps

$ lein install

Running in DEVELOPMENT mode

$ lein run

Running in PRODUCTION mode

Build the jar

$ lein uberjar
# ...
# Compiling webapp.core
# Created /<proj-dir>/target/webapp-0.1.0-SNAPSHOT.jar
# Created /<proj-dir>/target/webapp-0.1.0-SNAPSHOT-standalone.jar

Run the jar file with proper ENV

$ CLJ_ENV=production java -jar target/webapp-0.1.0-SNAPSHOT-standalone.jar

Benchmarking

Refer to https://github.com/vutran1710/Benchmarker