Skip to content

Instantly share code, notes, and snippets.

@fardeen9983
Created April 14, 2022 17:33
Show Gist options
  • Save fardeen9983/6d4997dbde970237179046dbe36a253c to your computer and use it in GitHub Desktop.
Save fardeen9983/6d4997dbde970237179046dbe36a253c to your computer and use it in GitHub Desktop.
Simple Express Server
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