An open API service indexing awesome lists of open source software.

https://github.com/matt5816/randomusersqldbgenerator

Generator of fake users SQL database import file.
https://github.com/matt5816/randomusersqldbgenerator

database fakedata fakeusergenerator sql

Last synced: about 2 months ago
JSON representation

Generator of fake users SQL database import file.

Awesome Lists containing this project

README

          

# Introduction

The Random User SQL DB Generator is designed for generating SQL database import file. Application use random fake data from [API](https://randomuser.me).

# How to run?

[Bulid project](#build-project) or [use Docker image](#use-docker-image).

## Build project

> Note: This method is intended for Windows and may vary from Linux (paths, extensions, etc.).

1. Compile solution:
```shell
dotnet build RandomUserSqlDbGenerator.sln -c Release
```
2. Run application:
```shell
bin/Release/net8.0/RandomUserSqlDbGenerator.exe 1000 > db.sql
```
where `1000` is a number of users to generate (**must be greater than 0**) and `db.sql` is name of output SQL file.

## Use Docker image

Run:

```csharp
docker run --rm ghcr.io/matt5816/random-user-sql-db-generator:latest 1000 > db.sql
```
where `1000` is a number of users to generate (**must be greater than 0**) and `db.sql` is name of output SQL file.

# References
* RANDOM USER GENERATOR open-source API: https://randomuser.me/