https://github.com/primaryobjects/business-profile-form
Business profile form using Angular 20 and Material UI CSS.
https://github.com/primaryobjects/business-profile-form
angular angular-20 angular-material angularjs client-side-validation csharp css dotnet material-ui server-side-validation typescript vscode
Last synced: 8 months ago
JSON representation
Business profile form using Angular 20 and Material UI CSS.
- Host: GitHub
- URL: https://github.com/primaryobjects/business-profile-form
- Owner: primaryobjects
- Created: 2025-06-26T20:14:54.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-07-03T22:09:20.000Z (8 months ago)
- Last Synced: 2025-07-07T09:14:10.575Z (8 months ago)
- Topics: angular, angular-20, angular-material, angularjs, client-side-validation, csharp, css, dotnet, material-ui, server-side-validation, typescript, vscode
- Language: HTML
- Homepage:
- Size: 1000 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Business Application Form Demo
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**.

---
## Project Overview
- **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.
---
## Getting Started
### Prerequisites
- Node.js & npm
- .NET 8 SDK (or compatible)
### Running the Client
```bash
cd client
ng serve
```
Open your browser at [http://localhost:4200/](http://localhost:4200/).
### Running the Server
```bash
cd server
dotnet run
```
The API will be available at [http://localhost:5051/api/contact](http://localhost:5051/api/contact).
---
## Building the Project
### Client
```bash
cd client
ng build
```
### Server
```bash
cd server
dotnet build
```
## Execution Flowchart
```mermaid
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]
```
---
## About
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.
---
## License
MIT
## Author
Kory Becker
[http://www.primaryobjects.com/kory-becker](http://www.primaryobjects.com/kory-becker)