Last active
September 22, 2021 03:59
-
-
Save SidneyAllen/ce2b93e62001975de81e23012af85910 to your computer and use it in GitHub Desktop.
av-bulk-11-setup-express-app
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
// Set up static files folder and the HTML engine | |
app.use(express.static(path.join(__dirname, 'public'))); | |
app.engine('html', require('ejs').renderFile); | |
app.set('view engine', 'html'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment