Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const express = require("express");
- const app = express();
- app.get("/", (req, res) => res.sendfile("index.html"));
- app.listen(8080);
- console.log("Server is currently running.");
- <!DOCTYPE html>
- <html lang="ru">
- <head>
- <meta charset="utf-8"/>
- <title>Чат</title>
- </head>
- <body>
- <h1>Test page.</h1>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement