A simple React-based password validation app that provides real-time feedback to users as they type their password. It checks for strength, character requirements, and provides visual cues for a better user experience.
- Real-time password strength validation
- Progressive strength indicator (Weak to Very Strong)
- Password visibility toggle (Show/Hide)
- Visual progress bar showing strength percentage
- Clean and modern UI with card-based design
- Built with React, HTML, and CSS
- Minimum 8 characters required
- Contains numbers (1-9)
- Contains special characters (!@#$%^&*()_+ etc.)
- Contains uppercase letters (A-Z)
The password strength is calculated based on these criteria and displayed with a progress bar and strength indicator.
- React.js
- JavaScript (ES6+)
- HTML5
- CSS3
- Create React App
password_validation/
├── public/
├── src/
│ ├── App.js
│ ├── App.css
│ ├── index.css
│ └── index.js
├── package.json
├── package-lock.json
└── README.md
-
Ensure Node.js is installed on your system (version 14 or higher)
-
Install project dependencies
npm install- Start the development server
npm startThe app will start in development mode. Open http://localhost:3000 to view it in your browser.
The page will automatically reload when you make changes to the source files.
- Build for production
npm run buildThe build will create a build folder with optimized files ready for production deployment.
- Run tests
npm testRuns the test suite with Jest.
The app will start in development mode. Open http://localhost:3000 to view it in your browser.
- Build for production
npm run buildThe build will create a build folder with optimized files ready for production deployment.
- At least 8 characters
- At least 1 uppercase letter
- At least 1 number
- At least 1 special character (!@#$%^&*)
- No spaces allowed
You can customize these rules in the PasswordValidator.js file located in the src/components directory.
Made with ❤️ by Tania




