GithubHelp home page GithubHelp logo

farazmoallemi / observerjs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from oslabs-beta/observerjs

0.0 0.0 0.0 3.34 MB

Server side middleware, request/response debugging and testing application.

HTML 0.19% JavaScript 97.32% CSS 1.31% Makefile 0.03% Shell 0.03% EJS 0.83% Handlebars 0.28%

observerjs's Introduction

A server-side application to support request/response debugging, multiple endpoint testing, and middleware transparency.

Quick Setup

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.

Installing obServerJS desktop application

Simply download the application HERE.

Installing NPM Package

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');

Features

App Tree

Displays the entire express routing stack that include all routes, endpoints, and middleware functions that are implemented in your server.

Response

Execution Order

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.

Response

Your full response body will be displayed here.

Source Code

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.

Testing

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.

Repo Structure

app => The main external electron application

npm => The express-observer NPM package

site => Our observerjs.com website

Authors

observerjs's People

Contributors

ashleypean avatar e-wilding avatar joshrobertsv2 avatar alderacres avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.