Created
February 17, 2022 13:22
-
-
Save oxlb/82eb1fb60d5a7032c14d28b334c6eefd to your computer and use it in GitHub Desktop.
Node Main File
This file contains hidden or 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 = process.env.PORT || 3030; | |
app.get('/', (req, res) => res.send('Hello World! Onexlab')) | |
app.listen(port, (err) => { | |
if (err) { | |
console.log('Error::', err); | |
} | |
console.log(`Onexlab app listening on port ${port}`); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment