Edupala

Comprehensive Full Stack Development Tutorial: Learn Ionic, Angular, React, React Native, and Node.js with JavaScript

Month: July 2017

Serving static file in Express

We can use Express’s built-in middleware called static to serve static file like images, CSS files, and JavaScript file to the client. First, we have to define the directory where will put all are the static file to the middleware function express.static to start serving the files directly. We will define public as a directory for serving the […]

Scroll to top