Skip to content

Very small and fast and easy edit http server for mocking api and testing HTML components in your projects.

Notifications You must be signed in to change notification settings

wpic/my-mock-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What's this for?

Very small and fast and easy edit http server for mocking api and testing HTML components in your projects. You can easily load all the static assets and also compile Coffeescript and LESS on fly!

How to use it?

You need to setup Java8.

jjs -cp my-mock-server-VERSION.jar YOUR_SCRIPT.JS

In your script file to can use MyMockServer class by passing to argument:

  • basedir: Base directory for static assets.
  • handlers: handlers for rest APIs. (for example see sample/my-server.js)

For Example:

jjs -cp my-mock-server-1.0-SNAPSHOT.jar sample/my-server.js

You can use pom file to generate jar file mvn package assembly:single for download it from releases page (Unzip it).

About

Very small and fast and easy edit http server for mocking api and testing HTML components in your projects.

Resources

Stars

Watchers

Forks

Packages

No packages published