moclojer
Simple and efficient HTTP mock server with specification written in yaml
, edn
or OpenAPI
.
💾 Download the
.jar
file with the latest version of moclojer to test on your computer here.
📖 See the complete documentation for moclojer here, if you want to contribute (or complement) the documentation, it is here.
YAML
example
docker
image:
ghcr.io/moclojer/moclojer:latest
port (default):
8000
, if you want to change the port set the environment variablePORT
We have two versions available:
dev
: main branch docker imagelatest
: latest stable version image
manual installation
We distribute via the .jar
file, you need to have Java installed on your operating system.
If you are using Linux you maybe need
sudo
.
CLI Usage
clj -M:run [OPTIONS]
java -jar moclojer.jar [OPTIONS]
moclojer_Linux [OPTIONS]
Options
parameter | description |
---|---|
| Config path or the CONFIG environment variable. [default: |
| OpenAPI v3 mocks path or the MOCKS environment variable. |
| Output and logging format. Either |
| Show help information |
| Show version information |
sentry: set environment var SENTRY_DSN
(sentry doc), automatic send backtrace to <sentry.io>
Config uses
XDG_CONFIG_HOME
to fetch the default moclojer configuration file, if you want to set a different directory you must use the-c
or environment variableCONFIG
💻 dev environment
moclojer is written in Clojure, to run the commands below we assume you have clojure installed on your operating system.
run:
test:
if you want to run a specific test:
clj -M:test -n com.moclojer.external-body.excel-test
moclojer.jar
generate:
framework integrations
We distribute the library via Clojars.
Clojure CLI/deps.edn
Leiningen/Boot
git
in deps.edn
git
in deps.edn
example of use
Last updated