Skip to content

A client-server web app that generates user data with human-like mistakes based on a given seed

Notifications You must be signed in to change notification settings

alex-kim-dev/fake-user-data

Repository files navigation

Fake user data generator

A client-server web app that generates user data with human-like mistakes based on the given seed.

Built with

  • Typescript, Zod
  • React, Axios, Bootstrap
  • Express, Faker.js, SeedRandom

Hosted on Vercel and Render.

I've learned how to

  • develop back-end apps with Express.js
  • generate fake user data based on a seed
  • organize a monorepo with pnpm workspaces

Requirements

  • key features
    • select region (at least 3 different)
    • specify the number of errors per record (two "linked" controls — slider 0..10 + binded number field 0..1000)
    • define seed value and "random" button to generate a random seed
      • must be a combination of user seed and a page number to skip generating previous pages
  • if the user changes anything, the table below automatically updates (20 records are generated again)
  • infinite scrolling
  • the table
    • index (1, 2, 3, ...) - no errors
    • random id - no errors
    • first, middle, last names (in the region format)
    • address (in several possible formats)
    • phone (several formats)
  • support 3 types of errors, chosen randomly
    • delete character at a random position
    • add a random character at a random position
    • swap adjacent characters
  • noisy user data shouldn't be too long or too short
  • generate data on a server
  • avoid full user data duplication in ~10_000_000 records
  • optional: add "Export to CSV" button (generate the number of pages which is displayed to a user currently)

About

A client-server web app that generates user data with human-like mistakes based on a given seed

Topics

Resources

Stars

Watchers

Forks