Last active
May 9, 2021 07:16
-
-
Save piyushgarg-dev/2b17bda77f8a89ef8891b1402755d357 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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