Giter VIP home page Giter VIP logo

stubbah's Introduction

stubbah

A node stub server thing.

Usage

To start it on port 3000:

    npm install
    npm start

Stupid(?) decisions

  • Do I need to transpile typescript at all for the server? Can I just run it?
  • Look, there's a lot of features ok.

Planned Features (a todo list)

Pact stubs

  • Stores stubs ✅
  • Matches stubs to request ✅
  • UI to look at stored stubs ✅
  • Add stubs by folder ✅
  • API to add stubs ✅
  • UI to add stubs ✅
  • API to remove stubs ✅
  • UI to remove stubs ✅
  • API to remove provider ✅
  • UI to remove provider ✅
  • API to add provider ✅
  • UI to add provider ❌
  • API to add state of provider ✅
  • UI to add state of provider ✅
  • API to remove state of provider ✅
  • UI to remove state of provider ✅
  • Counts/captures requests, and what stubs they match etc ✅
  • UI to look at count/captured requests ❌
  • Counter for amount of times a stub is triggered on the display pact page ✅
  • Reset counter for amount of times a stub is triggered on the display pact page ❌

Generic stubs

  • Stores stubs ✅
  • Matches stubs to request ✅
  • Support regex route matching ✅
  • Support method matching ✅
  • Support body matching ✅
  • UI to look at stored stubs ❌
  • Add stubs by folder ✅
  • API to add stubs ✅
  • UI to add stubs ❌
  • API to remove stubs ✅
  • UI to remove stubs ❌
  • API to add state of provider ✅
  • UI to add state of provider ❌
  • API to add provider ✅
  • UI to add provider ❌
  • API to remove state of provider ✅
  • UI to remove state of provider ❌
  • Counts/captures requests, and what stubs they match etc ❌
  • UI to look at count/captured requests ❌
  • Counter for amount of times a stub is triggered on the display stub page ❌
  • Reset counter for amount of times a stub is triggered on the display stub page ❌
  • Variables within stubs ❌

Pie in the sky ideas

  • Review the https implementation, potentially merge them?
  • Output useful files (what the heck is useful here)
  • Act as a proxy, and record request-response
  • What about... postman? And postman collections?
  • Write to file? DB?
  • Folder loaded as an option?
  • Export just the server as something?
  • Better documentation? lol pie in the sky.
  • Test. hahahah. I mean I really should but also

stubbah's People

Contributors

weiliangc3 avatar

Watchers

James Cloos avatar  avatar

Forkers

joepurnell1

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.