Last active
March 5, 2021 16:02
-
-
Save PraneshASP/55025d483c195f9a397582d4a20fe83c to your computer and use it in GitHub Desktop.
price-alert
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(); // Initialize an express instance | |
const PORT = process.env.PORT || 5000; // Define the port | |
app.use(express.json()); | |
app.get("/", (req, res) => { // Health check endpoint (optional) | |
return res.json({ status: "Up and running" }); | |
}); | |
app.listen(PORT, // Start listenting for requests | |
() => console.log("Server started listening!")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment