staticdeploy / Mock Server
Licence: mit
Easy to use, no frills http mock server
Stars: ✭ 27
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Mock Server
Httplive
HTTP Request & Response Service, Mock HTTP
Stars: ✭ 1,094 (+3951.85%)
Mutual labels: tooling, mock-server
React Fab Fan
Floating action button fan built with react and react-motion
Stars: ✭ 14 (-48.15%)
Mutual labels: frontend
Laravel6 Frontend Boilerplate
A Vue.js Frontend starter project kit template/boilerplate with Laravel 6 Backend API support.
Stars: ✭ 26 (-3.7%)
Mutual labels: frontend
Livingstyleguide
Easily create front-end style guides with Markdown and Sass/SCSS.
Stars: ✭ 874 (+3137.04%)
Mutual labels: frontend
Gold Miner
🥇掘金翻译计划,可能是世界最大最好的英译中技术社区,最懂读者和译者的翻译平台:
Stars: ✭ 29,872 (+110537.04%)
Mutual labels: frontend
Itelios Frontend Challenge
Desafio de admissão para desenvolvedores front-end da Itelios
Stars: ✭ 14 (-48.15%)
Mutual labels: frontend
Lightning Sites
☁️ Lightning deployment for your ~/Sites folders
Stars: ✭ 8 (-70.37%)
Mutual labels: frontend
Frontend Interview Questions
Answers for https://performancejs.com/post/hde6d32/The-Best-Frontend-JavaScript-Interview-Questions-(Written-by-a-Frontend-Engineer)
Stars: ✭ 876 (+3144.44%)
Mutual labels: frontend
Tailorx
A streaming layout service for front-end microservices used in Isomorphic Layout Composer
Stars: ✭ 27 (+0%)
Mutual labels: frontend
Frontend React
Open sourced front end application for codecorgi.
Stars: ✭ 9 (-66.67%)
Mutual labels: frontend
Vue 2 Boilerplate
Vue 2 boilerplate for developing medium to large single page applications.
Stars: ✭ 866 (+3107.41%)
Mutual labels: frontend
Frontend Dev Bookmarks
Manually curated collection of resources for frontend web developers.
Stars: ✭ 32,924 (+121840.74%)
Mutual labels: frontend
Composer Assets Plugin
Composer plugin for copying of frontend assets into public directory.
Stars: ✭ 20 (-25.93%)
Mutual labels: frontend
mock-server
Easy to use, no frills http mock server.
Suppose you're developing a frontend app that talks to one or more API services. When running it locally - in your development environment - you need to somehow provide those services to the app: you can either rely on a remote deployment, start the services locally, or mock them.
mock-server
is a command line tool that helps you take the third approach,
allowing you to easily create and run a mock http server to run during
development (and not only!).
Install
npm i --save-dev @staticdeploy/mock-server
Quickstart
- create a directory
mock-server
- create your first handler file
mock-server/get.js
module.exports = (req, res) => res.send("OK");
- start the mock server
$ node_modules/.bin/mock-server
- call the mocked route
$ curl http://localhost:3456/
You add routes to the mock server by adding handler files at the corresponding
path under the mock-server
directory. Example:
mock-server
├── get.js -> handler for GET /
└── users
├── {userId}
| ├── get.js -> handler for GET /users/1
| └── put.js -> handler for PUT /user/1
├── get.js -> handler for GET /users
└── post.js -> handler for POST /users
Documentation
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].