architecture besides db setup, say+roll
This commit is contained in:
12
db.ts
Normal file
12
db.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { MongoClient } from "mongodb";
|
||||
|
||||
//figure out the options and whatnot later
|
||||
const client = new MongoClient(process.env.MONGO_CONNECTION_STRING);
|
||||
|
||||
let store, users, income;
|
||||
|
||||
client.connect().then(() => {
|
||||
console.log("Connected to the database");
|
||||
//
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user