This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Step-1: | |
// create a script server file at the project root e.g. server.js | |
const path = require('path'); | |
const express = require('express'); | |
const app = express(); | |
const port = process.env.PORT || 3000; | |
const publicPath = path.join(__dirname, 'build'); | |
// serve the build folder |