https://github.com/adelpro/form2email
https://github.com/adelpro/form2email
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/adelpro/form2email
- Owner: adelpro
- Created: 2023-02-25T13:33:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-16T16:13:43.000Z (over 3 years ago)
- Last Synced: 2025-02-28T04:01:03.593Z (over 1 year ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# form2email
## How to Create a Feedback Form With Backend Using ReactJS, NodeMailer and Gmail
In this step by step tutorial we will create an application to manage feedbacks, from the back-end to the front-end using ReactJS for the front-end and NodeJS, Nodemailer and Gmail for the back-end.
- We will build an application with a form where the user can write his name, email, and his feedback.
- The form data will be sent to a NodeJS back-end application over an API.
- Then the Data will be formatted to an HTML page, then resent to an Gmail account using Nodemailer.
- To keep our code architecture clean, we will group each functionality in different file.
- We will learn how to manage cors in separate file with a special configuration folder "/config".
- We will manage validations in a different file: "validations/feedback.js".
- All our functions related to the route "/feedback" will be managed in a separate file too: "/controllers/feedbackController.js".
- A rate limiter (5 feedbacks / hour) will be used to block spams: "/middlewares/rateLimiter.js".
- We will run our back-end in a Linux machine using pm2, this will allow us to restart if our application crash or the server reboot and keep a logs for different events.
Read the article on medium: ...