cpride11 / ubiquitous-umbrella-dev

Courtney's Fall 2024 CIS 486 Projects https://ubiquitous-umbrella-dev-idx5.onrender.com
https://cpride11.github.io/ubiquitous-umbrella-dev.onrender.com
GNU General Public License v3.0
1 stars 0 forks source link

Connect to mongoDB #20

Open cpride11 opened 3 weeks ago

cpride11 commented 3 weeks ago

🦆 for mongoDB, atlas, create acc't (or better but quirky, oAuth2 w/github)

cpride11 commented 3 weeks ago

how to login w/github, set a verified + public email public email 364089049-6fd78939-1677-4f3b-b161-ebe7fd2faa4b

cpride11 commented 3 weeks ago

deploy 364092097-9689e0ac-0aa6-4ad6-b366-837536ef5c91

cpride11 commented 3 weeks ago

connect in a secure way

cpride11 commented 3 weeks ago

connect to our data

cpride11 commented 3 weeks ago

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); })```