Had a go at homework exercise, to hide the mongodb url string in session.js and datastore.js:
export URL_MONGODB=“mongodb://….”
//replaced 'url' in sessions.js and datastore.js without research, not sure if correct
url: process.env.URL_MONGODB,
//updated the hidden .env file
open .env, added export URL_MONGODB=“mongodb://….”, save
//because I'm on new environment reloaded the .env
source .env
Created a post on localhost:1337 and is working
Ready for re-deployment if this is correct