Welcome to the User Profiler repository built with React.js! This application allows you to create user profiles by providing a username and age. It also includes error handling to prompt users when they enter empty inputs or an age less than 1.
- Create user profiles by entering a username and age.
- Error handling for user inputs:
- Displays a popup error for empty inputs.
- Prompts an error when the age entered is less than 1.
You can try out the User Profiler by visiting the live demo here.
Follow these instructions to get the project up and running on your local machine.
Before you begin, ensure you have met the following requirements:
- Node.js installed on your machine.
-
Clone the repository to your local machine:
git clone https://github.com/msafeerhussain/User-profiler.git
-
Navigate to the project directory:
cd user-profiler
-
Install the necessary dependencies using npm or yarn:
npm install # or yarn install
-
Start the development server:
npm start # or yarn start
-
Open your web browser and visit http://localhost:3000 to access the User Profiler.
-
Create user profiles by providing a username and age. The app will handle errors for empty inputs and ages less than 1.
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them with descriptive commit messages.
- Push your changes to your fork.
- Submit a pull request to the main repository.
This project is licensed under the MIT License.