Server application

HandleForm

A server application processing form data received from the client request into e-mail notification.

Overview

A quick look at general information about the project with a brief description of the development process.

Project

A server-side application, using Nodejs as a run-time development platform for executing JavaScript code server-side. The main goal was to receive submitted form data from the client, process the data (validation), and send it as an email.

Project difficulties

The main challenge was finding a mail service provider which does not block sending third-party emails with its privacy policies. It was the first time to set (as basic) REST API. It was an occasion to learn server-side deployment tools like pm2.

Solutions

For an email service provider, it turns out Hotmail was working perfectly with nodemailer. From Express I used the cors method for cross-origin resource sharing and JSON parser for the incoming request body. Deployed and served using a subdomain dedicated to the API as a good practice, using HTTPS protocol for encrypted communication.

Notable features

  • Process POST request.

  • Data validation using joi library.

  • Sending email as a notification using nodemailer library.

Tech stack

  • Node

  • Express

  • JavaScript

GET IN TOUCH

Contact

Want to reach out about a project, collaboration, or just want to say friendly hello?

Message not send