Skip to content
/ jjunit Public

Simple HTTP server with REST, Less, Coffeescript support with JJS (Nashorn). You can simply create mock servers to test you HTMLs.

Notifications You must be signed in to change notification settings

wpic/jjunit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 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 jjunit.jar YOUR_SERVER_SCRIPT.JS

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

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

For Example:

jjs -cp jjunit.jar sample/start.js

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

History

v1.0

  • Use jlessc version 1.2

v1.0-SNAPSHOT

  • Use Coffee-script Javascript with Nashorn egnine for faster Less compile

About

Simple HTTP server with REST, Less, Coffeescript support with JJS (Nashorn). You can simply create mock servers to test you HTMLs.

Resources

Stars

Watchers

Forks

Packages

No packages published