Refactor units to be generic; start bundles; start app index.ts

This commit is contained in:
garrettmills
2020-07-20 22:54:25 -05:00
parent c0777f77b5
commit 60bb9afa29
22 changed files with 163 additions and 110 deletions

View File

@@ -0,0 +1,5 @@
import { env } from '../../lib/src/unit/Scaffolding.ts';
export default {
name: env('APP_NAME', 'Daton'),
}

View File

@@ -1,5 +0,0 @@
import { env } from '../../../lib/src/unit/Scaffolding.ts';
export default {
name: env('APP_NAME', 'Daton'),
}

16
app/configs/db.config.ts Normal file
View File

@@ -0,0 +1,16 @@
import {env} from "../../lib/src/unit/Scaffolding.ts";
export default {
connections: {
default: {
type: env('DB_TYPE', 'postgres'),
user: env('DB_USERNAME', 'daton'),
password: env('DB_PASSWORD'),
database: env('DB_DATABASE', 'daton'),
hostname: env('DB_HOSTNAME', 'localhost'),
port: env('DB_PORT', 5432),
}
}
}