Skip to content

Commit da616e0

Browse files
authored
Update README.md
1 parent 42404fc commit da616e0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ For example to create a new api route (E.g api/users)
105105
mkdir src/api/users
106106
```
107107

108+
#### IMPORTANT
109+
110+
Rember to use 'npm run dev' to start a local dev server when developing new API endpoints.
111+
112+
Once endpoints have been developed and tested then use 'npm run start' to build the docker image and start a container to serve the endpoints on localhost (or use 'npm run rebuild' or 'npm run nuke' if changes need to be made to an existing docker image).
113+
108114
#### 2. Create an **api.ts** file in this new folder and add handler logic here - see https://github.com/mswjs/msw for information on writing handlers.
109115

110116
Also take a look at the various example handlers in the api folder.

0 commit comments

Comments
 (0)