FrenchBen / Flash

A test service to mock slow server responses ⚡️⚡️⚡️

Home Page:https://flash.siwalik.in

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A test service to mock slow server responses.

Description

Flash lets you simulate a slow server response, when you make a request. This can come handy while testing how your application responds to a slow external service or API.

Right now Flash supports only GET requests with configurable delay and URL parameters.

Using Flash is really easy. eg. On visiting https://flash.siwalik.in/delay/5000/url/api.github.com You'll be redirected to api.github.com's response after a 5000ms delay.

Request Structures

Delay Mode
https://flash-the-slow-api.herokuapp.com/delay/{delay_time}
Delay and URL Mode
https://flash-the-slow-api.herokuapp.com/delay/{delay_time}/url/{url}

Learn more on usage here - documentation link.

Dev Setup

Running the app
$ git clone git@github.com:siwalikm/Flash.git
$ cd Flash
$ npm install
$ npm start
Running tests
$ npm test

If you're using vs-code for development, I've already included the launch.json scripts for running app and test server in debug mode.

Contributions

For contributing, please raise a pull request with your code and test. You can also contribute by reporting issues and adding feature requests.

License

This project is available for use under the MIT software license.

About

A test service to mock slow server responses ⚡️⚡️⚡️

https://flash.siwalik.in

License:MIT License


Languages

Language:HTML 40.1%Language:CSS 31.0%Language:JavaScript 28.8%Language:Procfile 0.0%