A simple and flexible API mock for modern apps. It lives in your project, hence its name.
It supports:
- Dumb responses (json)
- Clever responses (js)
- Stateful responses (soon)
- Faker and friends
Running the example is simple!
After cloning this...
$ npm install
$ npm start
$ open http://localhost:8090/users
To add mockizen
to your own project:
$ npm install --save-dev mockizen
$ npm install --global npm-add-script
$ touch scenarios.json
$ npmAddScript -k mocks:start -v "mockizen scenarios.json"
$ npm run mocks:start
Check example/scenarios.json
for an example.
- Stores
- Live data reload
- Live scenarios reload
- Artificial delays & errors
- Swagger import
- REST routes generator
- Front page