geminate / Easy Mock Server
Licence: mit
A mock server for json and mock template files
Stars: ✭ 22
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Easy Mock Server
Weld
Full fake REST API generator written with Rust
Stars: ✭ 146 (+563.64%)
Mutual labels: json, mock-server
Strip Json Comments
Strip comments from JSON. Lets you use comments in your JSON files!
Stars: ✭ 492 (+2136.36%)
Mutual labels: json, npm-package
Jsonexport
{} → 📄 it's easy to convert JSON to CSV
Stars: ✭ 208 (+845.45%)
Mutual labels: json, npm-package
Conf
Simple config handling for your app or module
Stars: ✭ 707 (+3113.64%)
Mutual labels: json, npm-package
Wiremock
A tool for mocking HTTP services
Stars: ✭ 4,790 (+21672.73%)
Mutual labels: json, mock-server
Ky
🌳 Tiny & elegant JavaScript HTTP client based on the browser Fetch API
Stars: ✭ 7,047 (+31931.82%)
Mutual labels: json, npm-package
Yaml.js
Standalone JavaScript YAML 1.2 Parser & Encoder. Works under node.js and all major browsers. Also brings command line YAML/JSON conversion tools.
Stars: ✭ 810 (+3581.82%)
Mutual labels: json
Rss Parser
A lightweight RSS parser, for Node and the browser
Stars: ✭ 793 (+3504.55%)
Mutual labels: json
Github Spray
Draw on your GitHub contribution graph ░▒▓█
Stars: ✭ 908 (+4027.27%)
Mutual labels: npm-package
Raccoon Plugin
With Raccoon, use a JSON or YAML file to manage WordPress theme features
Stars: ✭ 18 (-18.18%)
Mutual labels: json
Jackson Module Kotlin
Module that adds support for serialization/deserialization of Kotlin (http://kotlinlang.org) classes and data classes.
Stars: ✭ 830 (+3672.73%)
Mutual labels: json
Acf 5 Pro Json Storage
Save ACF 5 Pro field groups as JSON within this plugin, rather than inside your theme.
Stars: ✭ 16 (-27.27%)
Mutual labels: json
Atmo
✔️ Mock data for your prototypes and demos. Remote deployments to Zeit now.
Stars: ✭ 802 (+3545.45%)
Mutual labels: mock-server
Movement
Movement is an easier, simpler way to explore and use NIEM. Want to join the Movement and contribute to it? Start here.
Stars: ✭ 19 (-13.64%)
Mutual labels: json
Html2json
Lightweight library that converts a HTML webpage to JSON data using a template defined in JSON.
Stars: ✭ 18 (-18.18%)
Mutual labels: json
Introduction
EasyMockServer is a mock server for json and mock template files.It can map you json/mockJs file to RESTful url easily.
Install
You can install easy-mock-server as local package
$ npm install easy-mock-server
or global package
$ npm install -g easy-mock-server
Usage
Basic
$ easyMockServer
If you mock file tree like this
│
├─mock
│ │ basic.json
│ │
│ ├─auth
│ │ login.json
│ │ logout.json
│ │ user.template
│ │
│ └─goods
│ beverage.json
The mapping will be
./mock/basic.json --> http://localhost:8124/mock/basic
./mock/auth/login.json --> http://localhost:8124/mock/auth/login
./mock/auth/logout.json --> http://localhost:8124/mock/auth/logout
./mock/auth/user.template --> http://localhost:8124/mock/auth/user
./mock/goods/basic.json --> http://localhost:8124/mock/goods/basic
- The json file will be returned directly.
- The template file will be translated by mockJs before return. See mockJs document
- Other file will be ignored.
Change port
$ easyMockServer -p 8088
$ easyMockServer --port 8088
change base path
$ easyMockServer -b ./mock
$ easyMockServer --basePath ./mock
set lag
$ easyMockServer -l 4000
$ easyMockServer --lag 4000
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].