Express app

In server.js, we will first add code to import the express module in order to initialize an Express app.

mern-simplesetup/server/server.js:

import express from 'express'const app = express()

Then we will use this Express app to build out the rest of the Node server application.

Get Full-Stack React Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.