Skip to content

Instantly share code, notes, and snippets.

@rajat1saxena
Created March 31, 2018 09:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rajat1saxena/a9af4b4ddc23d63151a540c06d6ad37d to your computer and use it in GitHub Desktop.
Save rajat1saxena/a9af4b4ddc23d63151a540c06d6ad37d to your computer and use it in GitHub Desktop.
const express = require('express')
const app = express()
// set the view engine for Express
app.set('view engine', 'pug')
app.get('/', (req, res) => {
// index.pug from 'views' folder will be used
res.render('index')
})
app.listen(3000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment