model | method | url | requst body | params |
---|---|---|---|---|
users | GET |
/api/users |
||
users | PUT |
/api/users/:id |
{ name?: string; email?: string } |
|
users | POST |
/api/users |
{ name: string; email: string } |
|
users | DELETE |
/api/users/:id |
- node 14.x
pnpm
ornpm
- install the dependencies
npm install
- start the watch the server
npm run watch-server
- the server will run at
http://localhost:8000
- run the typescript compiler
npm run build
- output will go to the
public
directory