Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Converted the Third Party Mailgun dependency to Normal Nodemailer #245

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions server/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ MONGO_URI=mongodb://127.0.0.1:27017/mern_ecommerce
JWT_SECRET=
MAILCHIMP_KEY=
MAILCHIMP_LIST_KEY=
MAILGUN_KEY=
MAILGUN_DOMAIN=
EMAIL_USERNAME=
EMAIL_PASSWORD=
MAILGUN_EMAIL_SENDER=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
Expand Down
24 changes: 12 additions & 12 deletions server/config/keys.js
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
module.exports = {
app: {
name: 'Mern Ecommerce',
name: "Mern Ecommerce",
apiURL: `${process.env.BASE_API_URL}`,
clientURL: process.env.CLIENT_URL
clientURL: process.env.CLIENT_URL,
},
port: process.env.PORT || 3000,
database: {
url: process.env.MONGO_URI
url: process.env.MONGO_URI,
},
jwt: {
secret: process.env.JWT_SECRET,
tokenLife: '7d'
tokenLife: "7d",
},
mailchimp: {
key: process.env.MAILCHIMP_KEY,
listKey: process.env.MAILCHIMP_LIST_KEY
listKey: process.env.MAILCHIMP_LIST_KEY,
},
mailgun: {
key: process.env.MAILGUN_KEY,
domain: process.env.MAILGUN_DOMAIN,
sender: process.env.MAILGUN_EMAIL_SENDER
eusername: process.env.EMAIL_USERNAME,
epassword: process.env.EMAIL_PASSWORD,
sender: process.env.MAILGUN_EMAIL_SENDER,
},
google: {
clientID: process.env.GOOGLE_CLIENT_ID,
clientSecret: process.env.GOOGLE_CLIENT_SECRET,
callbackURL: process.env.GOOGLE_CALLBACK_URL
callbackURL: process.env.GOOGLE_CALLBACK_URL,
},
facebook: {
clientID: process.env.FACEBOOK_CLIENT_ID,
clientSecret: process.env.FACEBOOK_CLIENT_SECRET,
callbackURL: process.env.FACEBOOK_CALLBACK_URL
callbackURL: process.env.FACEBOOK_CALLBACK_URL,
},
aws: {
accessKeyId: process.env.AWS_ACCESS_KEY_ID,
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY,
region: process.env.AWS_REGION,
bucketName: process.env.AWS_BUCKET_NAME
}
bucketName: process.env.AWS_BUCKET_NAME,
},
};
15 changes: 15 additions & 0 deletions server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"mongoose": "^5.5.11",
"mongoose-slug-generator": "^1.0.4",
"multer": "^1.4.2",
"nodemailer": "^6.9.15",
"passport": "^0.4.0",
"passport-facebook": "^3.0.0",
"passport-google-oauth2": "^0.2.0",
Expand Down
Loading