https://github.com/marydn/mockserver
This will start a Node server to answer mocked REST petitions.
https://github.com/marydn/mockserver
api api-server mockserver mockserverclient node nodejs rest rest-api
Last synced: 15 days ago
JSON representation
This will start a Node server to answer mocked REST petitions.
- Host: GitHub
- URL: https://github.com/marydn/mockserver
- Owner: marydn
- Created: 2020-03-15T18:36:52.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-15T18:43:36.000Z (about 6 years ago)
- Last Synced: 2025-09-10T23:03:42.021Z (9 months ago)
- Topics: api, api-server, mockserver, mockserverclient, node, nodejs, rest, rest-api
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## Mockserver
This will start a server to answer mocked REST petitions.
This is using [https://www.mock-server.com/](https://www.mock-server.com/)
## Environment setup
1. [Install npm](https://www.npmjs.com/get-npm)
2. Clone this project: `git clone https://github.com/marydn/mockserver.git`
3. Move to the project folder: `cd mockserver`
4. Install npm dependencies: `npm install`
5. Init the server: `npm start`
6. Go to [`http:://localhost:1080`](http:://localhost:1080) in your browser.
## Endpoints
By default, there are some endpoints implemented:
* [`http:://localhost:1080`](http:://localhost:1080)
* [`http:://localhost:1080/foo`](http:://localhost:1080/foo)
* [`http:://localhost:1080/bar`](http:://localhost:1080/bar)
* [`http:://localhost:1080/foo-bar`](http:://localhost:1080/foo-bar)
You can modify [server.js](./server.js) and add new endpoints or modify the existent ones.
You can also modify the default port in [server.js](./server.js):
```javascript
const port = 1080;
```