9. Start JSON Server
json-server --watch db.json
Resources
* http://localhost:3000/posts
* http://localhost:3000/users
* http://localhost:3000/comments
Home
* http://localhost:3000
10. Add records using lowDB
curl -X POST "http://localhost:3000/posts"
-H "accept: application/json"
-H "Content-Type: application/json"
-d '{ "title": "Post created from the CLI", "views":100, "user_id":123}'
https://github.com/typicode/lowdb
22. Getting Started
mkdir docz
Add dependencies (make sure you add `docz-theme-default`)
yarn add docz
yarn add docz-theme-default
Run it
yarn docz dev
24. hello-world-textarea.mdx
—
name: Hello textarea
route: /hello-textarea
---
# Hello world
Hello, I'm still a mdx file, but now I have a textarea element
```
<textarea>
Hello there, this is some text in a text area
</textarea>
```
<textarea>
Hello there, this is some text in a text area
</textarea>
25. components/Button.mdx
—
name: Button
menu: Components
---
import { Playground, PropsTable } from 'docz'
import { Button } from './Button'
# Button
Buttons make common actions more obvious and help users more easily perform
them. Buttons use labels and sometimes icons to communicate the action that
will occur when the user touches them.
<Button>Click me</Button>