Skip to content

Instantly share code, notes, and snippets.

@piyushgarg-dev
Last active May 9, 2021 07:16
Show Gist options
  • Save piyushgarg-dev/2b17bda77f8a89ef8891b1402755d357 to your computer and use it in GitHub Desktop.
Save piyushgarg-dev/2b17bda77f8a89ef8891b1402755d357 to your computer and use it in GitHub Desktop.
const express = require('express');
const app = express();
const PORT = 8000;
app.use(express.static('./public'));
app.use(express.json());
app.listen(PORT, () => console.log(`Express server started at PORT:${PORT}`));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment