Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const express = require('express');
- const app = express();
- const expbs = require('express-handlebars');
- app.engine('handlebars', expbs());
- app.set('view engine', 'handlebars');
- // Routing
- app.get('/', (req, res) => {
- res.render('index');
- })
- app.listen(8080, () => {
- console.log('Server is starting at port ', 8080);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement