Legion's Obstacle Course is a simple express.js server. Included are a variety of practice tasks. These tasks can be used to test Legion's functionality or as training tasks for new users.
Get detailed documentation about the tasks by requesting / from the server.
Start the server by running:
obstacle-course --http
or run it programatically from within another library by calling:
require('legion-obstacle-course').http.listen(port);
The arguments and return value for listen() are exactly the same as the express.js method of the same name.
There's also a TCP echo server.
obstacle-course --tcp-echo
or
require('legion-obstacle-course').tcp.echo.listen(port)