Person Data Generator is a web application that generates random person data such as names, addresses, phone numbers, and more. This project is built with Node.js and provides an easy-to-use interface for generating and viewing person data.
- Generate random person data including names, addresses, phone numbers, emails, and more.
- User-friendly interface for generating and viewing data.
- API endpoints for programmatic access to data generation.
To get started with the Person Data Generator, follow these steps:
- Clone the repository:
git clone https://github.com/pedroasgDEV/person-data-generator.git
cd person-data-generator
- Install dependencies:
Make sure you have Node.js installed. Then run:
npm install
- Start the application:
npm start
The application will be available at http://localhost:3000.
- Open your web browser and go to http://localhost:3000.
- Use the interface to generate person data.
- Customize the options as needed and click "Generate".
You can also generate data programmatically using the provided API endpoints.
Generate Random Person Data
- Endpoint: /api/generate
- Method: GET
- Parameters:
- count (optional): Number of person records to generate (default is 1).
Example Request:
curl http://localhost:3000/api/generate?count=5
Example Response:
[
{
"name": "John Doe",
"email": "okan.akgul@example.com",
"phone": "555-1234",
"adress": {
"number": 4422,
"street": "Doktorlar Cd",
"city": "Çankırı",
"state": "Uşak",
"country": "Turkey",
"postcode": 16998,
},
"img" : "https://randomuser.me/api/portraits/men/6.jpg",
"CPF" : "123.456.789-10",
},
]