From fd0fafa68d638b729a506ba668165e29eea71a49 Mon Sep 17 00:00:00 2001 From: Mateja Date: Fri, 9 Jul 2021 17:13:23 +0200 Subject: Backend boilerplate code... --- server/config/env.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 server/config/env.js (limited to 'server/config') diff --git a/server/config/env.js b/server/config/env.js new file mode 100644 index 0000000..befa8ba --- /dev/null +++ b/server/config/env.js @@ -0,0 +1,6 @@ +require('dotenv').config(); +module.exports = { + port: process.env.PORT || 3000, + mongoUrl: process.env.DB_CONN || "mongodb://localhost/mevn_ecommerce_db", + masterKey: process.env.APP_SECRET || "you-should-use-something-different" +}; -- cgit v1.2.3