Skip to content

[PERSONAL PROJECT] - Tiny command line app to mock endpoints and return data on demand.

License

Notifications You must be signed in to change notification settings

juancancela/jcmock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jcmock

Tiny command line app to mock endpoints and returned data on demand.

Installation

  1. Install NodeJS 7.8.0 or greater. To do that, go to https://nodejs.org/en/, click on the big gren button and follow the instructions.
  2. On a command line console, execute: npm install -g jcmock

Usage

On a Command Line, execute this:

set JCMOCK_PORT=4333 && set JCMOCK_URL=/somepath && set JCMOCK_RESPONSE_PATH=/dev/om/response.json && jcmock

JCMOCK_PORT: Port where mocked endpoint will be listening. IE: 4333 (defaults to 8080)

JCMOCK_URL: Path to mock. IE: /person

JCMOCK_RESPONSE_PATH: Path to response that will be returned when endpoint is hit. IE: {"key":"value"}

About

[PERSONAL PROJECT] - Tiny command line app to mock endpoints and return data on demand.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published