Skip to content

Instantly share code, notes, and snippets.

@NGR-NP
Last active January 27, 2023 08:12
Show Gist options
  • Save NGR-NP/e321f620ba5be144c4c3ec05fa1bb98e to your computer and use it in GitHub Desktop.
Save NGR-NP/e321f620ba5be144c4c3ec05fa1bb98e to your computer and use it in GitHub Desktop.
node console log message
console.log("\nstarting node server\n");
const PORT = 8080
const API_URL = "http://localhost"
app.listen(PORT, () => {
console.log(
"πŸš€πŸš€ express app is Running πŸƒ at 🌐 " +
API_URL +
" & πŸ‘‚ listening on PORT " +
PORT +
" "
);
console.log("\n Local: " + API_URL + ":" + PORT);
});
// warning message
console.log("\n❌❌❌❌❌❌❌❌❌❌❌❌❌❌");
console.log(" ❌ MongoDB Disconnected ❌");
console.log("❌❌❌❌❌❌❌❌❌❌❌❌❌❌");
// success message
console.log("πŸŽ‰ πŸŽ‡ πŸŽ† MongoDB connected successfully πŸŽ† πŸŽ‡ πŸŽ‰");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment