Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joway/mockd
mock domain
https://github.com/joway/mockd
doamin mock
Last synced: about 1 month ago
JSON representation
mock domain
- Host: GitHub
- URL: https://github.com/joway/mockd
- Owner: joway
- Created: 2017-08-04T07:30:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-09T10:55:30.000Z (over 5 years ago)
- Last Synced: 2024-11-20T12:59:19.482Z (about 2 months ago)
- Topics: doamin, mock
- Language: JavaScript
- Size: 37.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MockD
Mock Domains on localhost .
## Getting Started
### Installing
```
npm i -g mockd
```### Usage
- edit ~/.mockd/proxy.json
example:
{
"akc": "http://127.0.0.1:8002",
"kd": "https://www.youdao.com"
}- edit /etc/hosts
127.0.0.1 akc
127.0.0.1 kd- start server
```
sudo mockd # require root permission
```- when visited `akc` , you will be proxy to http://127.0.0.1:8002
ps: if proxy.json file changed , you need to restart your mockd server
## LicenseThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details