heyMakar / mokkify

RestAPI mocking service built with Next.js

Home Page:https://mokkify.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

License: MIT GitHub package.json version GitHub last commit

Mokkify

Welcome to Mokkify - a self-hosted RestAPI mocking service built with Next.js. Mokkify provides a flexible response builder and templating system for crafting your mocks, as well as support for Relay requests to an external hook to simulate various scenarios, like DLR. We've done our best to make the interface intuitive and easy to use.

Demo admin / admin

Features

  • ๐Ÿ” RestAPI mocking
  • ๐Ÿ—๏ธ Self-hosted
  • โšก Caching requests. Throughput up to 600 qps
  • ๐Ÿงฉ Flexible response builder and templates
  • โฒ๏ธ Response delay emulation
  • ๐Ÿ”„ Relay request support with external hooks
  • ๐Ÿ”ฎ Intuitive interface
  • ๐Ÿ” Authorization

Interface example

Requirements

  • Sqlite3

Installation & Running

First, clone the repository:

git clone https://github.com/icevl/mokkify.git

Then, navigate to the project directory and install the necessary dependencies:

cd mokkify
yarn install
yarn cli dbcreate
yarn cli useradd <login> <password>

After that, start the project in development mode:

yarn dev

Open http://localhost:3000 with your browser to see the result.

Nginx config for deployment

upstream webhook {
  server 127.0.0.1:7043;
}

location / {
    proxy_set_header Host <Your host>;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_pass http://webhook;
  }

Support and Contributions

If you encounter any issues or have questions about using Mokkify, please create an "Issue" in this repository, and we'll be glad to assist you.

If you wish to contribute to the project's development, feel free to fork the repository and submit pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for more information.

About

RestAPI mocking service built with Next.js

https://mokkify.dev

License:MIT License


Languages

Language:TypeScript 81.8%Language:SCSS 15.7%Language:JavaScript 2.3%Language:CSS 0.2%