// StaticRoutes Example // Source code file: main.js const express = require("express"); const app = express( ); // Set public as a static folder. app.use(express.static('public')); // Set server to listen at port 3000. app.listen(3000, ( ) => { console.log("Listening on Port 3000."); });