Created
April 14, 2022 17:33
-
-
Save fardeen9983/6d4997dbde970237179046dbe36a253c to your computer and use it in GitHub Desktop.
Simple Express Server
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 = process.env.PORT || 80; | |
app.get("/",(req,res)=> { | |
res.send("Hello From Code Panthers"); | |
res.end(); | |
}) | |
app.listen(PORT,() => { | |
console.log(`App is running on port ${PORT}`); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment