feat: add one-command local development stack
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
import 'dotenv/config';
|
||||
import dotenv from 'dotenv';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
|
||||
dotenv.config({ path: fileURLToPath(new URL('../../../../.env', import.meta.url)) });
|
||||
|
||||
import { buildApp } from './build-app.js';
|
||||
import { createDatabase } from '../infrastructure/database/client.js';
|
||||
@@ -55,6 +58,12 @@ async function startServer() {
|
||||
const passwordResetRepository = createPasswordResetRepository(database.db);
|
||||
const mfaMethodRepository = createMfaMethodRepository(database.db);
|
||||
const securityAuditRepository = createSecurityAuditRepository(database.db);
|
||||
const secretProtector = createSecretProtector();
|
||||
const mfaService = createMfaService({
|
||||
mfaMethodRepository,
|
||||
secretProtector,
|
||||
securityAuditRepository,
|
||||
});
|
||||
const passwordResetNotifier = createPasswordResetNotifier();
|
||||
const authenticationService = createAuthenticationService({
|
||||
mfaService,
|
||||
|
||||
Reference in New Issue
Block a user