Skip to content

Instantly share code, notes, and snippets.

@PraneshASP
Last active March 5, 2021 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PraneshASP/55025d483c195f9a397582d4a20fe83c to your computer and use it in GitHub Desktop.
Save PraneshASP/55025d483c195f9a397582d4a20fe83c to your computer and use it in GitHub Desktop.
price-alert
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