Skip to content

Instantly share code, notes, and snippets.

@oxlb
Created February 17, 2022 13:22
Show Gist options
  • Save oxlb/82eb1fb60d5a7032c14d28b334c6eefd to your computer and use it in GitHub Desktop.
Save oxlb/82eb1fb60d5a7032c14d28b334c6eefd to your computer and use it in GitHub Desktop.
Node Main File
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