Skip to content

Instantly share code, notes, and snippets.

@jrichardsz
Created September 30, 2024 14:32
Show Gist options
  • Save jrichardsz/7dd5d45c339920dec0f068f544fa4b61 to your computer and use it in GitHub Desktop.
Save jrichardsz/7dd5d45c339920dec0f068f544fa4b61 to your computer and use it in GitHub Desktop.
environment variables snippets
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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment