Mocks Server is essentially a set of NPM packages.
Read the usage chapter in 5 minutes ⏱ to fully understand the Mocks Server main concepts: Routes, Variants and Collections.
Add it to your project dependencies using NPM:
npm i -D @mocks-server/main
This will install the
@mocks-server/main package, which contains some preinstalled plugins. This docs usually make reference to this distribution until the contrary is indicated.
Add the next script to the
"mocks" : "mocks-server"
This enables to start the server by simply running a command in the project folder.
npm run mocks