Created
May 15, 2022 15:40
-
-
Save AkshayCHD/87caaa70fe5f657c9f1e66cfc50e9042 to your computer and use it in GitHub Desktop.
This file contains 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 = 5000; | |
app.get("/", (req, res) => { | |
res.json({ message: "Hello World" }); | |
}) | |
app.get("/health-check", (req, res) => { | |
res.json({ message: "Server up and running" }); | |
}) | |
app.listen(PORT, () => { | |
console.log("Server Running on PORT", PORT); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment