cpride11 / ubiquitous-dev

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

Connect in a secure way #21

Open cpride11 opened 2 months ago

cpride11 commented 2 months ago

$: npm i dotenv $: touch .env (do this from gui) on app.js: require('dotenv').config() populate our .env with a variable & mongo cxn string... e.g. MONGO_URI = "mongodb+srv://cpride11:@cluster0.5abxx.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0"