Open cpride11 opened 3 weeks ago
how to login w/github, set a verified + public email
connect in a secure way
connect to our data
app.get('/mongo', async (req,res)=>{
console.log('in /mongo'); await client.connect(); console.log('connected?'); // Send a ping to confirm a successful connection let result = await client.db("barrys-db").collection("whatever-collection") .find({}).toArray(); console.log(result); })```
🦆 for mongoDB, atlas, create acc't (or better but quirky, oAuth2 w/github)