A modern full-stack contact form built with HTML, CSS, JavaScript, Node.js, Express and PostgreSQL.
- Responsive contact form layout
- Real-time form validation
- Required and optional field validation
- UK phone number validation
- Success and error feedback
- Frontend-to-backend communication using Fetch API
- Express API endpoint
- PostgreSQL database storage
- Environment variables for database configuration
- HTML5
- CSS3
- JavaScript
- Node.js
- Express.js
- PostgreSQL
- The user fills in the contact form.
- JavaScript validates the form fields.
- The form data is sent to the Express backend using the Fetch API.
- The backend receives the request and stores the message in PostgreSQL.
- The server sends a response back to the frontend.
- The user sees a success or error message.
