amiddy v3.0.0
amiddy
Middleware package that makes development much simpler.
Key features
- proxy any dependency based on pattern matcher (fallback to source)
- mock dependency responses
- record dependency response
Installation
npm install --save-dev amiddyOr if you are using yarn
yarn add --dev amiddyUsage
Add new script in package.json. Example:
"scripts": {
"start-amiddy": "node amiddy"
}After that start the server by running npm run start-amiddy
Configuration
Via .amiddy (Recommended)
You need to have at project root folder a file named .amiddy that contains valid json.
Create a file with this name, complete json configuration and you can start the server.
Via CLI
Using --config or -c arguments you can provide the path to the configuration file.
Example: npm run start-amiddy --config=../path/to/file.json
Options
Command Line Options
--config, -c
Allows you to set the configuration file.
--tokens, -t
Allows you to set the tokens file. When using tokens file, the config file will be used as base configuration, see #16.
--debug, -d
Allows you to see debug logs. Useful to see what is the configuration that was loaded.
License
The MIT License (MIT)