Refactor units to be generic; start bundles; start app index.ts
This commit is contained in:
5
app/configs/app.config.ts
Normal file
5
app/configs/app.config.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { env } from '../../lib/src/unit/Scaffolding.ts';
|
||||
|
||||
export default {
|
||||
name: env('APP_NAME', 'Daton'),
|
||||
}
|
||||
@@ -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
16
app/configs/db.config.ts
Normal 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),
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user