import express from "express";
import path from 'path';
const app = express();
const PORT = process.env.PORT || 5000;
app.get('/',(req,res)=>{
res.sendFile(path.resolve('index.html'));
})
app.listen(PORT,()=> console.log('server is running'));
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter