A full-stack business application form demo with Angular 20 (client) and ASP.NET Core (server). This project demonstrates a modern, responsive business profile form with Angular Material UI, advanced CSS, and robust server-side validation.
-
Purpose:
- Provide a practical example of a business user profile form with real-world validation and full-stack integration.
-
Features:
- Responsive Angular 20 client using Material Design components.
- Text fields, dropdowns, radio buttons, and checkboxes.
- Custom CSS for clean, maintainable, and responsive design.
- Client-side validation for required fields and input constraints.
- Server-side validation using ASP.NET Core data annotations and custom validation attributes.
- Clear error messages returned from the server for invalid submissions.
- Example of full-stack form handling and validation.
- Node.js & npm
- .NET 8 SDK (or compatible)
cd client
ng serve
Open your browser at http://localhost:4200/.
cd server
dotnet run
The API will be available at http://localhost:5051/api/contact.
cd client
ng build
cd server
dotnet build
flowchart TD
A[User fills out Business Profile Form] --> B[Client-side Validation]
B -->|Valid| C[HTTP POST /api/contact]
B -->|Invalid| Z[Show Validation Errors]
C --> D[ASP.NET Endpoint ContactController]
D --> E[Server-side Validation .NET Data Annotations & Custom Attributes]
E -->|Valid| F[Process Data, Save to DB, Send Email]
E -->|Invalid| Y[Return Validation Errors]
F --> G[Return Success Response]
Y --> H[Client Receives Error Response]
G --> I[Client Receives Success Response]
H --> J[Show Server Validation Errors]
I --> K[Show Success Message]
This project is intended as a reference for developers implementing real-world forms with Angular and ASP.NET Core, demonstrating both client-side and server-side validation, clean CSS, and responsive UI.
MIT
Kory Becker http://www.primaryobjects.com/kory-becker