Coder Social home page Coder Social logo

eldadfux / mockus Goto Github PK

View Code? Open in Web Editor NEW

This project forked from harel-digital/mockus

0.0 2.0 0.0 243 KB

HTTP Endpoint mocking, intuitive web client, instant serving

License: MIT License

HTML 1.39% JavaScript 78.38% CSS 0.09% TypeScript 18.30% Shell 1.84%

mockus's Introduction

Mockus

Http endpoint mocking and configuring solution, with easy and simple to use web interface, which updates immediatly on save, with no need to restart!

Mockus


The problem

When you want to run integrations tests, or just want to build your app independently without any active backend, you have few options:

  • Mock out the response with a JSON file
  • Create a mock service yourself
  • Use Mockus!

The Solution

This tool was designed to help developers and qa testers quickly create endpoints for their applications. No need to create a server, just run this project localy. You can create, edit and manage routes to your API. Every change to the API will be reflected on the server and updated straight away.


Development

$ git clone https://github.com/harel-digital/mockus/
$ cd mockus

Client:

$ cd mockus-client
$ npm i
$ npm start

Server:

$ cd mockus-server
$ npm i
$ npm run tsc
$ npm start

On your browser, access: http://localhost:3000/


Deployment

Mac / Linux users

$ sh scripts/build_release.sh

Windows users (powrshell / git bash)

$ scripts/build_release.sh

And then

$ NODE_ENV=production node packages/mockus-server/lib/index.js

On your browser, access: http://localhost:4000/


Open Issues

  • Disable duplicate routes
  • Add support for persistent DB
  • Support dynamic routes (/path/:var)

License

Mockus is MIT licensed.

mockus's People

Contributors

avihaymenahem avatar

Watchers

James Cloos avatar Eldad A. Fux 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.