Quick Start
Install & Start
- Add it to your project dev dependencies
bash
yarn add soon-mock -D
- Add a script to
package.json
, -p can config the server port
json
{
"scripts": {
"mock": "soon-mock -p 8080"
}
}
- Start the soon-mock server
bash
yarn mock
- When the server started, you can just access
http://localhost:8080
in your browser
Add APIs
You could read the next chapter Quick
.