A server-side application to support request/response debugging, multiple endpoint testing, and middleware transparency.
This will be a two step process that includes:
- Downloading and running the obServerJS desktop application.
- Installing and enabling the obServerJS NPM package in your server under test.
Simply download the application HERE.
On the server you want to debug, install the 'express-observer' NPM package.
$npm install express-observer
On the same server, comment out the line that imports express. And import the 'express-observer' package in it's place.
//const express = require('express');
const express = require('express-observer');
Displays the entire express routing stack that include all routes, endpoints, and middleware functions that are implemented in your server.
This section displays the expected middleware flow of your request route. So any middleware functions that are not invoked during the request are not displayed here. You can click on any of the nodes to display the source code for that middleware function.
Your full response body will be displayed here.
Here is where the source code will be displayed when you click on any node in the 'Execution Order' section. You can control the size with zoom or stretching the section.
This 'Testing' tab allows you to create a request/response testing suite for your server. Users can add requests to any endpoints as a test case, and provide the expected response of that request. When you hit the green play button, it will run through all test cases and display the results. Clicking on any test case will display the expected response and the actual response in the sections on the right.
app => The main external electron application
npm => The express-observer NPM package
site => Our observerjs.com website