@brainsbeards/mimic-server

0.11.1 • Public • Published

Mimic Server

Install

yarn install

Run server and watch for configuration changes

yarn watch

Generate a self-signed certificate for serving SSL requests

Running an HTTPS server requires a UNIX-compatible system with openssl installed.

  • Run yarn generate-cert. This will create a certificate-key pair in the project directory. (The files will be called localhost.crt and localhost.key, respectively).
  • Mark the generated certificate as locally trusted (for example, on Mac OS X, add it to keychain and update "trust" preferences).
  • The server should now support SSL on port 3001, or a custom httpsPort specified in the config file (apimocker.json).

Tests

You can run all the project's unit test suites with yarn test.

Readme

Keywords

none

Package Sidebar

Install

npm i @brainsbeards/mimic-server

Weekly Downloads

0

Version

0.11.1

License

SEE LICENSE IN LICENSE.md

Unpacked Size

74.5 kB

Total Files

43

Last publish

Collaborators

  • patryk-peszko
  • sharnik
  • szymonkoper
  • redbluenat