Skip to content

Instantly share code, notes, and snippets.

@kasramp
Created May 28, 2020 13:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kasramp/c69c31c9d960fb4460d051f1c6981b42 to your computer and use it in GitHub Desktop.
Save kasramp/c69c31c9d960fb4460d051f1c6981b42 to your computer and use it in GitHub Desktop.
let config = {};
config.database = {};
config.web = {};
config.database.host = Deno.env.get("DATABASE_HOST") || "localhost";
config.database.username = Deno.env.get("DATABASE_USERNAME") || "root";
config.database.password = Deno.env.get("DATABASE_PASSWORD") || "secret";
config.database.name = Deno.env.get("DATABASE_NAME") || "user_db";
config.web.port = Deno.env.get("WEB_PORT") || 8080;
export default config;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment