October 2017
Intermediate to advanced
302 pages
7h 27m
English
Inside our new scripts/assess.js, require the serve package:
const serve = require('serve');
All we want to do is serve our newly compiled build folder on port:5000, which looks like this:
const server = serve('./build', { port: 5000});
We can stop the server at any time by running server.stop(). We'll do that once our scores are displayed.
Read now
Unlock full access