boyney123 / mockit
- воскресенье, 21 апреля 2019 г. в 00:17:44
JavaScript
A tool to quickly mock out end points, setup delays and more...
Stop wasting time mocking APIs. MockIt gives you an interface to configure and create REAL mocked end points for your applications. Whilst you wait for APIS to be built use MockIt to talk to a real service.
When building applications you often need to interact with services. When the services are not ready to be consumed you have a few options:
This tool was designed to help developers quickly create end points 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:
More information about how it works, its features can be found on the docs.
Make sure you have docker running
git clone git@github.com:boyney123/mockit.gitcd mockit && sh build-and-start.shOnce everything is up and running go to http://localhost:5000 to see MockIt.
For instructions on how to use MockIt please see the documentation.
If you have any problems with permissions you might need to chmod the file
chmod +x build-and-start.sh && ./build-and-start.sh
Once Docker is running you have three applications running on the machine.
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.
If you have any questions, features or issues please raise any issue or pull requests you like.
If you find this tool useful, feel free to buy me a ☕
MIT.