A simple web app that generates a list of user data (including names, email addresses, and phone numbers) based on a selected country and number of records. The app leverages the faker-js library to create random data and libphonenumber-js to generate valid phone numbers for different countries.
- Country Selection: Choose from a list of countries, which will affect the generated phone numbers (with the correct international format).
- Data Generation: Generate a customizable number of records (from 1 to 1000).
- Phone Number Validation: The app generates valid phone numbers using the libphonenumber-js library, ensuring they are correctly formatted for the selected country.
- Export Data: You can download the generated data in JSON format for further use.
- Responsive: The app is fully responsive and works on both desktop and mobile devices.
- React: Frontend framework for building the user interface.
- Faker.js: For generating random names, emails, and other data.
- libphonenumber-js: For phone number validation and formatting.
- Sass: For styling the app.
- Font Awesome: For icons in the dropdown and other UI elements.
To run this app locally:
- Clone the repository:
git clone https://github.com/AymanAbusura/Database_Generator.git
- Install dependencies: Navigate to the project folder and run:
npm install
- Start the development server:
npm start
The app will now be running on http://localhost:3000
.
- Select a country: Use the dropdown to select the country you want to generate data for.
- Enter the number of records: Specify how many records you'd like to generate (between 1 and 1000).
- Generate Data: Click the "Generate" button to generate random user data.
- Download Data: After generating the data, click the "Download JSON" button to download the data as a JSON file.
Feel free to open an issue or create a pull request if you have any suggestions or improvements for this project.
This project is licensed under the MIT License - see the LICENSE file for details.