@21natzil/

newsletter builder

Nodejs

build a repl.it newsletter

fork
loading
Files
  • index.js
  • public
  • index.html
  • package-lock.json
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
const express = require('express');

const app = express();

app.use(express.static('public'))

app.get('/', (req, res) => {
  res.sendFile(__dirname + '/index.html');
});

app.listen(3000, () => {
  console.log('server started');
});
node v10.16.0