notsoocool / codecache

CodeCache is a dynamic web application designed to streamline the way developers manage and access code snippets. The platform provides a comprehensive library of code snippets, allowing users to save, organize, and retrieve useful code snippets for various programming languages and use cases.
https://codecache.tech
MIT License
18 stars 57 forks source link

add subscribe to the platform #181

Closed haseebzaki-07 closed 3 weeks ago

haseebzaki-07 commented 3 weeks ago

fixes #171

This PR adds the backend API for emailing service using nodemailer, Created the frontend component for users to give in their mail ids, Integrated both frontend and backend for the purpose and also added toast notifications for success and error alerts.

Screenshot 2024-10-28 133506

https://github.com/user-attachments/assets/f96fda7c-aa5d-4dc6-afde-ab9d6e19916a

WhatsApp Image 2024-10-28 at 3 10 15 PM

vercel[bot] commented 3 weeks ago

@haseebzaki-07 is attempting to deploy a commit to the notsoocool's projects Team on Vercel.

A member of the Team first needs to authorize it.

haseebzaki-07 commented 3 weeks ago

hey @notsoocool done everything and extra toast addition, please increase the level of the PR

vercel[bot] commented 3 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
codecache ❌ Failed (Inspect) Oct 28, 2024 10:10am
haseebzaki-07 commented 3 weeks ago

Sure @notsoocool I will make the changes

haseebzaki-07 commented 3 weeks ago

@notsoocool I want to ask a thing, The contact us page is for users to contact the admin/maintainer of the website and their mails should be rolled out to the admin. Subscribing the platform in another thing, like newsletter or stay updated where users get only the confirmation mail and further mails for updates.

Contact us page can be implememented separately so that the users feedbacks are stored in the database and their responses are sent to their mail ids.

What should I do??

notsoocool commented 3 weeks ago

@notsoocool I want to ask a thing, The contact us page is for users to contact the admin/maintainer of the website and their mails should be rolled out to the admin. Subscribing the platform in another thing, like newsletter or stay updated where users get only the confirmation mail and further mails for updates.

Contact us page can be implememented separately so that the users feedbacks are stored in the database and their responses are sent to their mail ids.

What should I do??

I understand what you are trying to say, see i basically don't want anything included in the footer, you can either add it in the contact us page, faq page, my profile page, whatever suits you best, but no in the footer

haseebzaki-07 commented 3 weeks ago

Okay I'll do it

haseebzaki-07 commented 3 weeks ago

Screenshot 2024-10-28 172309 hey @notsoocool made the changes.

Brought sonner instead of react-toastify. Changed the stay updated component from footer to contact us. smtp_user and smtp_pass are the two fields in the .env file that are necessary for the email sending.