This project showcases a simple Angular contact form with validation. The form has the following fields:
Required fields:
- Name(first and last name)
- Message
- Privacy Policy checkbox
Optional fields:
- Phone Number
- Subscribe to newsletter
The form has the following validation rules:
- Name: Required, minimum length of 3 characters
- Email: Required, valid email format
- Message: Required, minimum length of 10 characters
- Privacy Policy: Required
- Phone Number: Optional, valid phone number format
- Subscribe to newsletter: Optional, default is true
- Clone the repository
git clone https://github.com/mosesokemwa/fe_dawit.git
- Run
npm install
to install the dependencies - Run
ng serve
to start the application onhttp://localhost:4200/
- Angular 11
- Angular Material
- Angular Flex Layout
- Angular Reactive Forms
- Angular Animations
- Use X-SRF-TOKEN for CSRF protection
- Dockerize the application
- Add smart tests
- Add to and simplify documentation