DEVELOPMENT / 2026

Building My Portfolio Contact API

Building and deploying a production contact API with Express, validation, sanitization, rate limiting, security headers and email delivery.

The Problem

A portfolio contact form needs more than a frontend form. The submission must be validated, protected against abuse and passed safely to an email delivery service.

API Design

The backend exposes a dedicated contact endpoint and separates request handling from mail delivery. Security middleware and input handling provide a safer boundary between the public website and the email service.

Cloud Deployment

The API is deployed as a cloud service and exposed through the custom API domain used by the portfolio frontend.

Email Delivery

Email delivery uses Resend rather than direct SMTP connectivity, allowing the deployed service to send contact messages through a dedicated transactional email provider.

Back to Blog