text: const db = require('./db.json')
  const jsonServer = require('json-server')
  const server = jsonServer.create()
  const router = jsonServer.router(db)
  const middlewares = jsonServer.defaults()
  
  server.use(middlewares)
  
  server.use(router)
  server.listen(3000, () => {
    console.log('JSON Server is running')
  })
  