Snek/index.js

10 lines
205 B
JavaScript

const express=require('express');
const app=express();
const PORT=process.env.PORT || 3000;
app.use(express.static('public'));
app.listen(PORT, () => {
console.log(`Listening on 0.0.0.0:${PORT}`);
});