• Stars
    star
    1,584
  • Rank 29,535 (Top 0.6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A tool to quickly mock out end points, setup delays and more...

MockIt: A tool to quickly create mocked APIs.

Stop wasting time mocking APIs. MockIt gives you an interface to configure and create REAL mocked endpoints for your applications. Whilst you wait for APIS to be built use MockIt to talk to a real service.


Travis CodeCov Netlify Status MIT License PRs Welcome All Contributors

Watch on GitHub Star on GitHub Tweet

Donate โ˜•


header

Features: Live Reload, Chaos Engineering, Authentication, CORS and more...

Read the Docs | Edit the Docs


The problem

When building applications you often need to interact with services. When the services are not ready to be consumed you have a few options:

  1. Mock out the response with a JSON file
  2. Create a mock service yourself
  3. Use MockIt.

This solution

This tool was designed to help developers quickly create endpoints for their applications. No need to create a server, just use docker and run this project locally. 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.

This tool comes with a few features out the box:

  • CORS
  • Basic Authentication
  • Chaos Monkey (Unleash a monkey to take down your endpoints)

More information about how it works, its features can be found on the docs.

Read the docs and get started

Getting Started

Make sure you have docker running

git clone https://github.com/boyney123/mockit.git
cd mockit && docker-compose up --build -d

Once everything is up and running go to http://localhost:5000 to see MockIt.

For instructions on how to use MockIt please see the documentation.

Permissions

If you get error: Couldn't connect to Docker daemon at http+docker://localhost - is it running? you might need run with sudo

sudo docker-compose up --build -d

Local install and running tests

If you want to install and run the tests for all apps then you can run this script:

sh install-and-test.sh

If you have any problems with permissions you might need to chmod the file

chmod +x install-and-test.sh && ./install-and-test.sh

Viewing the dashboard, server and API

Once Docker is running you have three applications running on the machine.

  1. The client: http://localhost:5000
  2. The client-server: http://localhost:4000
  3. The MockIt API (this is the server that runs your API): http://localhost:3000

If you want to view the dashboard to get started go to http://localhost:5000.

If you want to interact with your new API go to http://localhost:3000.

For example, if you have a /user route setup, go to http://localhost:3000/user to view the data.

Tools

Documentation

Testing

Contributing

If you have any questions, features or issues please raise any issue or pull requests you like.

Donating

If you find this tool useful, feel free to buy me a โ˜• ๐Ÿ‘

Buy a drink

License

MIT.

Contributors

Thanks goes to these wonderful people (emoji key):

David Boyne
David Boyne

๐Ÿ’ป ๐Ÿ“– ๐ŸŽจ ๐Ÿค” ๐Ÿ‘€ ๐Ÿ”ง
Liran Tal
Liran Tal

๐Ÿ›ก๏ธ
Hongarc
Hongarc

๐Ÿ“–
Hugo Locurcio
Hugo Locurcio

๐Ÿ’ป
Andrew Hall
Andrew Hall

๐Ÿ“–
Peter Grainger
Peter Grainger

๐Ÿ“–
Ben
Ben

๐Ÿ’ป
MCRayRay
MCRayRay

๐Ÿ’ป
Fred Bricon
Fred Bricon

๐Ÿ’ป
fliu2476
fliu2476

๐Ÿ›
David Esposito
David Esposito

๐Ÿ“–
Mickaรซl
Mickaรซl

๐Ÿ“–
Josรฉ Carrรฉra Alvares Neto
Josรฉ Carrรฉra Alvares Neto

๐Ÿ’ป

This project follows the all-contributors specification. Contributions of any kind welcome!

More Repositories

1

awesome-eventbridge

List of resources for learning about events, patterns, and using Amazon EventBridge
659
star
2

garie

Open source web performance
Shell
525
star
3

awesome-event-patterns

Personal collection of links, videos and things to help with event architecture event patterns.
338
star
4

eventbridge-atlas

Open-source tool to document, discover, and share your Amazon EventBridge schemas.
JavaScript
191
star
5

awsicons

Open source SVG icon library with over 500+ icons
CSS
172
star
6

github-actions

Open source list of GitHub Actions. Free free to submit a PR to add your action
JavaScript
160
star
7

cloudcatalog

Discover, Explore and Document your AWS architectures powered by Markdown.
TypeScript
105
star
8

react.explore-tech.org

Open source project to help people explore, develop & learn React.
JavaScript
87
star
9

eventbridge-canon

Open source simple UI to Publish, Save and Share AWS EventBridge Events
TypeScript
81
star
10

performance-budgets

performance-budgets gives you a simple way to check and stay on top of performance
JavaScript
60
star
11

awstools

Open source project to find libraries, tools and resources for your services.
CSS
59
star
12

cdk-eventbridge-socket

CDK construct that creates a WebSocket endpoint for you for any EventBridge rule you are interested in. (Built for debugging + testing )
HTML
53
star
13

garie-lighthouse

Lighthouse Garie plugin. Polls websites to checkout performance metrics also supports webhooks.
JavaScript
50
star
14

evento

A free to use open source Jekyll project. Allows people to create internal/external events, showing times and information for anybody that wants to attend.
HTML
42
star
15

eventbridge-transformer

Online tool to quickly build input templates and paths for Amazon EventBridge
TypeScript
40
star
16

status-checks

GitHub status checks as Functions
JavaScript
34
star
17

cdk-schema-watcher

Allow your consumers to listen to schema changes with Amazon EventBridge
JavaScript
32
star
18

complexity-is-the-gotcha-of-event-driven-architecture

Repo that contains all my resources for my talk "Complexity is the Gotcha of event-driven architecture"
31
star
19

event-driven-architecture-journey-talk-resources

Resources for my talk on event-driven architecture journey
29
star
20

auto-comment

A GitHub App built with Probot that automatically comments on issues and pull requests based on configuration
JavaScript
26
star
21

serverless-innovation-day-2023

A showcase of AWS serverless technology choices such as AWS Lambda, Amazon ECS with AWS Fargate, Amazon EventBridge, and AWS Step Functions. In addition, watch serverless modernization success stories, use cases, and best practices.
24
star
22

generator-create-docusaurus

A generator for new docusaurus projects.
JavaScript
14
star
23

react-redux-form-yup-schema-example

Simple example of using react, redux, redux-form and yup for validation.
JavaScript
11
star
24

garie-pagespeed-insights

JavaScript
10
star
25

graphql.explore-tech.org

Open source project to help people explore, develop & learn GraphQL.
JavaScript
10
star
26

virtualEDA

Website for Virtual Event Driven Community
TypeScript
7
star
27

garie-browsertime

Browsertime Garie plugin. Polls websites to checkout performance metrics also supports webhooks.
JavaScript
7
star
28

musix

Song application built with React, Sockets and MongoDB
JavaScript
7
star
29

eventbridge-lens

VSCode extension for Amazon EventBridge
TypeScript
7
star
30

eventcatalog

Discover, Explore and Document your Event Driven Architectures powered by Markdown.
6
star
31

eventbridge-bootstrapper

Some scripts to bootstrap some EventBridge Schemas to play around with.
JavaScript
3
star
32

mockit-docs

Documentation for mockit
JavaScript
2
star
33

garie-docs

Documentation for Garie
JavaScript
2
star
34

task-lint

A Status Check GitHub App built with Probot that checks to make sure all comment tasks in your pull requests are complete.
JavaScript
2
star
35

songs-api

API for songs using Express & Mongo
JavaScript
1
star