add vault and mongo db with postgres in comments

This commit is contained in:
iamBadgers
2025-06-06 18:07:24 -07:00
parent 273cbf1558
commit 02007ffc94
11 changed files with 7851 additions and 3 deletions

16
vault/src/app.ts Normal file
View File

@@ -0,0 +1,16 @@
import express from 'express'
import { buildClient } from './db'
const app = express()
const dbClient = buildClient('db', 'rushvault', 'rushvault', 'rushvault')
app.get('/api/person', async (req, res) => {
res.status(200).send('potato!')
})
app.listen(8080, async () => {
console.log('starting on 8080')
dbClient.connect()
console.log(await dbClient.query('SELECT NOW()'))
})