This will start a server to answer mocked REST petitions. This is using https://www.mock-server.com/
- Install npm
- Clone this project:
git clone https://github.com/marydn/mockserver.git
- Move to the project folder:
cd mockserver
- Install npm dependencies:
npm install
- Init the server:
npm start
- Go to
http:://localhost:1080
in your browser.
By default, there are some endpoints implemented:
http:://localhost:1080
http:://localhost:1080/foo
http:://localhost:1080/bar
http:://localhost:1080/foo-bar
You can modify server.js and add new endpoints or modify the existent ones.
You can also modify the default port in server.js:
const port = 1080;