You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
317 B
JavaScript
18 lines
317 B
JavaScript
6 years ago
|
'use strict';
|
||
|
|
||
|
const express = require("express");
|
||
|
const path = require("path");
|
||
|
|
||
|
let app = express();
|
||
|
|
||
|
app.set("views", path.join(__dirname, "views"));
|
||
|
app.set("view engine", "pug");
|
||
|
|
||
|
app.use(express.static(path.join(__dirname, "public")))
|
||
|
|
||
|
app.get("/", (req, res) => {
|
||
|
res.render("editor");
|
||
|
});
|
||
|
|
||
|
app.listen(3000);
|