Code Monkey home page Code Monkey logo

mocks-server-utils's Introduction

Mock server utils

Mocks server utils is a tool for quickly starting a REST API mocks server.

The tool is ideal for:

  • Share mocks during the development phase of an IT project.
  • Simulate a server during the automated testing phase.

Easy to use : Based on the mocks syntax of wiremock project http://wiremock.org/. Mock server utils consume mocks in json format in a directory (mocks by default). Hot reload : Mocks can be injected while the server is running.

Get started

Prerequisite

Dependency Version
nodeJs >= 10
JAVA >= 8

On your post

  • Install dependencies npm install.
  • Start the server npm start.
  • Start the mocks hot reload : npm run mocks.

To add new mocks, add a .json file under mocks then add the stubning which mocks the desired url. See documentation here.

Setting

This utility can be configured through the mocks-server.properties file.

Property Description Default value
port Mock server port 1080 1080
host Mock server host localhost
log-level Mock server log level INFO
watch-delay Polling times (milliseconds) of the mocks director 2000
mocks-path Path to the directory where the mocks are
repository Path to the maven repository containing the jar of the mock server (Voir fichier)
proxy-http HTTP proxy configuration string KO for the moment
verbose Make the server verbose true

mocks-server-utils's People

Contributors

lingelo avatar dependabot[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar Ahmed avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.