[MAJOR][FIRSTCOMMIT] Added basic routes, controllers, repos to kanban service (no postgres yet)

This commit is contained in:
2025-09-27 14:09:35 +05:30
parent f283f6043f
commit fd7ceca2ef
109 changed files with 3554 additions and 444 deletions

31
lib/pre-start.js Normal file
View File

@@ -0,0 +1,31 @@
"use strict";
/**
* Pre-start is where we want to place things that must run BEFORE the express
* server is started. This is useful for environment variables, command-line
* arguments, and cron-jobs.
*/
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
// NOTE: DO NOT IMPORT ANY SOURCE CODE HERE
const path_1 = __importDefault(require("path"));
const dotenv_1 = __importDefault(require("dotenv"));
const ts_command_line_args_1 = require("ts-command-line-args");
// **** Setup **** //
// Command line arguments
const args = (0, ts_command_line_args_1.parse)({
env: {
type: String,
defaultValue: 'development',
alias: 'e',
},
});
// Set the env file
const result2 = dotenv_1.default.config({
path: path_1.default.join(__dirname, `../env/${args.env}.env`),
});
if (result2.error) {
throw result2.error;
}
//# sourceMappingURL=pre-start.js.map