aboutsummaryrefslogtreecommitdiffstats
path: root/backend/src/config/env.js
diff options
context:
space:
mode:
Diffstat (limited to 'backend/src/config/env.js')
-rw-r--r--backend/src/config/env.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/backend/src/config/env.js b/backend/src/config/env.js
new file mode 100644
index 0000000..9353571
--- /dev/null
+++ b/backend/src/config/env.js
@@ -0,0 +1,11 @@
+require('dotenv').config();
+
+const env = {
+ PORT: process.env.PORT || 5000,
+ MONGODB_URI: process.env.MONGODB_URI || 'mongodb://localhost:27017/restaurant',
+ JWT_SECRET: process.env.JWT_SECRET || 'your_jwt_secret_here',
+ NODE_ENV: process.env.NODE_ENV || 'development',
+ JWT_EXPIRES_IN: process.env.JWT_EXPIRES_IN || '30d'
+};
+
+module.exports = env; \ No newline at end of file