Base backend code

This commit is contained in:
2026-05-12 19:29:45 -04:00
parent 8dd2d05643
commit f591bdffb5
13 changed files with 2636 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
const dotenv = require('dotenv');
const path = require('path');
function SetupEnvironment() {
const env = process.env.NODE_ENV || 'devel';
const envPath = path.resolve(process.cwd(), `${env}.env`);
dotenv.config({ path: envPath });
console.log(`Loaded environemnt: ${envPath}`);
}
module.exports = {
SetupEnvironment
}