VSCode appearance customizations for settings.json
https://stackoverflow.com/questions/45218663/use-workbench-colorcustomizations-in-extension
https://stackoverflow.com/questions/45218663/use-workbench-colorcustomizations-in-extension
This was from the user shell
Caroline@CAROL-HP MINGW64 ~/projects/jmjbeta (master)
$ mongodump --uri mongodb+srv://<cm........>:<PASSWORD>@cluster0.uhsqe.mongodb.net/JMJ
2022-03-25T17:24:16.937-0400 writing JMJ.enrollments to dump\JMJ\enrollments.bson
2022-03-25T17:24:17.107-0400 done dumping JMJ.enrollments (385 documents)
2022-03-25T17:24:17.160-0400 writing JMJ.courses to dump\JMJ\courses.bson
2022-03-25T17:24:17.248-0400 done dumping JMJ.courses (59 documents)
2022-03-25T17:24:17.272-0400 writing JMJ.users to dump\JMJ\users.bson
2022-03-25T17:24:17.278-0400 writing JMJ.children to dump\JMJ\children.bson
2022-03-25T17:24:17.282-0400 writing JMJ.teachercourses to dump\JMJ\teachercourses.bson
2022-03-25T17:24:17.286-0400 writing JMJ.families to dump\JMJ\families.bson
2022-03-25T17:24:17.346-0400 done dumping JMJ.teachercourses (65 documents)
2022-03-25T17:24:17.354-0400 done dumping JMJ.families (56 documents)
2022-03-25T17:24:17.369-0400 done dumping JMJ.users (66 documents)
2022-03-25T17:24:17.377-0400 writing JMJ.classes to dump\JMJ\classes.bson
2022-03-25T17:24:17.384-0400 writing JMJ.teachercoursestest to dump\JMJ\teachercoursestest.bson
2022-03-25T17:24:17.401-0400 writing JMJ.teachers to dump\JMJ\teachers.bson
2022-03-25T17:24:17.411-0400 done dumping JMJ.children (245 documents)
2022-03-25T17:24:17.443-0400 writing JMJ.grade_levels to dump\JMJ\grade_levels.bson
2022-03-25T17:24:17.443-0400 done dumping JMJ.classes (50 documents)
2022-03-25T17:24:17.452-0400 done dumping JMJ.teachercoursestest (50 documents)
2022-03-25T17:24:17.467-0400 done dumping JMJ.teachers (27 documents)
2022-03-25T17:24:17.475-0400 writing JMJ.years to dump\JMJ\years.bson
2022-03-25T17:24:17.510-0400 done dumping JMJ.grade_levels (18 documents)
2022-03-25T17:24:17.540-0400 done dumping JMJ.years (5 documents) https://rclayton.silvrback.com/export-enumerations-as-static-mongoose-properties
note that for A2Hosting, this.from had to be a simple email formatted in “myname@stuff.com”
module.exports = class Email {
constructor(user, url) {
this.to = user.email;
this.firstName = user.firstName;
this.url = url;
this.from =process.env.EMAIL_FROM;
}
newTransport() {
if (process.env.NODE_ENV !== 'production') {
const transporter = nodemailer.createTransport({
host: process.env.MYHOST,
port: process.env.MYPORT,
auth: {
user: process.env.MYUSERNAME,
pass: process.env.MYPASSWORD,
},
});
transporter.verify(function(error, success) {
if (error) {
console.log("Transporter" + error);
} else {
console.log("Server is ready to take our messages");
}
});
return transporter;
}
As Per the nodemailer web site
You can verify your SMTP configuration with verify(callback) call (also works as a Promise). If it returns an error, then something is not correct, otherwise the server is ready to accept messages.
transporter.verify(function(error, success) {
if (error) {
console.log(error);
} else {
console.log("Server is ready to take our messages");
}
});
Be aware though that this call only tests connection and authentication but it does not check if the service allows you to use a specific envelope From address or not.
https://www.sitepoint.com/a-beginners-guide-to-pug/