var express = require('express');
var app = express();
app.get('/', function(req, res) {
res.type('text/plain');
res.send('Hell , its about time!!');
});
app.get('/env-variables', function(req, res) {
res.json(process.env);
});
app.listen(process.env.PORT || 8080);
Created
September 30, 2024 14:32
-
-
Save jrichardsz/7dd5d45c339920dec0f068f544fa4b61 to your computer and use it in GitHub Desktop.
environment variables snippets
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment