]> git.cworth.org Git - zombocom-ai/blob - index.js
Add a simple express server
[zombocom-ai] / index.js
1 const express = require('express');
2 const app = express();
3 const http = require('http');
4 const server = http.createServer(app);
5 const port = 2122;
6
7 app.get('/', (req, res) => {
8     res.sendFile(__dirname + '/index.html');
9 });
10
11 server.listen(port, () => {
12     console.log(`listening on *:${port}`);
13 });
14