Skip to content

Instantly share code, notes, and snippets.

@AkshayCHD
Created May 15, 2022 15:40
Show Gist options
  • Save AkshayCHD/87caaa70fe5f657c9f1e66cfc50e9042 to your computer and use it in GitHub Desktop.
Save AkshayCHD/87caaa70fe5f657c9f1e66cfc50e9042 to your computer and use it in GitHub Desktop.
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