newsletter frontend and backend done : #542 done #550
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
newsletter frontend and backend done : #542 done
So this is the video first of all -
There is some network lag so website is loading slowly, so not mind that
20241025173843.mp4
So you have to keep mind this things -
for newsletter option visible in footer is only visible to the admin. Because i think you don't want that everyone can send the newsletter to the user.
you dont have any admin option so you have to set mongodb isAdmin value to true. See this image-
this is newsletter schema for storing newsletter subscribing mail -
And you need to setup the nodemailer email id and password for sending the emails to the user for that you need smtp mail and password so which you can find its information and store in .env file -
Frontend is decent I think but i have work a lot in this from creating admin middleware to storing admin value and then admin context in frontend and then frontend for newsletter and apis in backend for it. So i have more focused on backend part . If you want any information then i can help you.