Skip to content

Commit ce00539

Browse files
committed
Added MongoDB base classes and dummy repository
1 parent 0d9864b commit ce00539

File tree

15 files changed

+10128
-7194
lines changed

15 files changed

+10128
-7194
lines changed

samples/unwrapping_onion/config.ts

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,18 @@ const convictConfig = convict({
1010
arg: 'nodeEnv',
1111
env: 'NODE_ENV',
1212
},
13-
eventStoreDB: {
13+
mongoDB: {
1414
connectionString: {
1515
format: String,
16-
default: 'esdb://localhost:2113?tls=false&throwOnAppendFailure=false',
17-
arg: 'ESDB_CONNECTION_STRING',
18-
env: 'ESDB_CONNECTION_STRING',
16+
default: 'mongodb://localhost:27017',
17+
arg: 'MONGODB_CONNECTION_STRING',
18+
env: 'MONGODB_CONNECTION_STRING',
1919
},
20-
},
21-
postgres: {
22-
connectionString: {
23-
format: String,
24-
default: 'postgres://postgres:Password12!@localhost:5432/postgres',
25-
arg: 'DATABASE_URL',
26-
env: 'DATABASE_URL',
27-
},
28-
schemaName: {
20+
databaseName: {
2921
format: String,
30-
default: 'postgres',
31-
arg: 'DATABASE_SCHEMA',
32-
env: 'DATABASE_SCHEMA',
22+
default: 'mongodb://localhost:27017',
23+
arg: 'MONGODB_DATABASE_NAME',
24+
env: 'MONGODB_DATABASE_NAME',
3325
},
3426
},
3527
});
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
{
2-
"postgres": {
3-
"schemaName": "ecommerce"
4-
}
5-
}
1+
{}
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
{
2-
"postgres": {
3-
"schemaName": "ecommerce"
4-
}
5-
}
1+
{}
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
{
2-
"postgres": {
3-
"schemaName": "ecommerce"
4-
}
5-
}
1+
{}

0 commit comments

Comments
 (0)