connect to the database

This commit is contained in:
Sven Czarnian
2022-10-22 15:54:17 +02:00
parent 35ed2384ab
commit cb2b255cc3
4 changed files with 487 additions and 27 deletions

View File

@@ -0,0 +1,7 @@
export default () => ({
database: {
url: process.env.DATABASE_URL || 'localhost',
port: parseInt(process.env.DATABASE_PORT, 10) || 27017,
name: process.env.DATABASE_NAME || 'aman',
},
});