Cara Memulai Server JSON
json-server --watch db.json
Disgusted Dragonfly
json-server --watch db.json
json-server --watch db.json
const jsonServer = require('json-server')
const server = jsonServer.create()
const router = jsonServer.router('db.json')
const middlewares = jsonServer.defaults()
const port = process.env.PORT || 3000
server.use(middlewares)
server.use(router)
server.listen(port)