diff options
author | Mateja <mail@matejamaric.com> | 2021-07-09 17:13:23 +0200 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2021-07-09 17:13:23 +0200 |
commit | fd0fafa68d638b729a506ba668165e29eea71a49 (patch) | |
tree | 0e857d875f5a534bfa19887d1581806beaa65cb7 /server/config | |
parent | 5a55212b17e203c62112214b97c00f0974d3029d (diff) | |
download | mevn-ecommerce-fd0fafa68d638b729a506ba668165e29eea71a49.tar.gz mevn-ecommerce-fd0fafa68d638b729a506ba668165e29eea71a49.zip |
Backend boilerplate code...
Diffstat (limited to 'server/config')
-rw-r--r-- | server/config/env.js | 6 |
1 files changed, 6 insertions, 0 deletions
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" +}; |