This mock uses the following environment variables:
Name | Description | Required | Default value |
---|---|---|---|
ENDPOINT_DELAY | Delay time in milliseconds applied to every endpoint | No | 0 |
You must set up environment variables by creating a .env
file. You can use the provided example file as such to get default values for these variables:
$ cp env.example .env
Install dependencies with
$ yarn
Run in development with
$ yarn dev
if a file is changed under the src/ directory the app will be rebuilt automatically
Build the package with
$ yarn build
then, you can just use:
$ yarn start