$ npm install cors
server.js
...
// allow CORS
const cors = require('cors')
server.use(cors())
...
CORS must be enabled for our server to be available in domains other than localhost:4000.
We'll discuss CORS in details Chapter 6
Start server
$ npm start
To see code:
$ git checkout -f c4_bonus_frontend
To run frontend code
$ cd sample_ui
$ npm run ui