Enable CORS

$ npm install cors


// allow CORS
const cors = require('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

Run the sample frontend app:

To see code:

To run frontend code

$ cd sample_ui
$ npm run ui