Skip to content

shalinv/Mock_Data_Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mock Data Generator 📝

A simple web application that dynamically generates random data based on user-defined fields and types using Faker.js. Users can add multiple fields, specify their data types, generate sample data, and easily copy it to the clipboard.

Features

  • Dynamically add and remove fields with custom names and data types.
  • Supports multiple data types:
    • string, integer, float, boolean
    • name, email, phone, date
    • image_url, file_url, object, array
  • Generates 10 random entries per request (can be modified in code).
  • Displays generated data in a formatted JSON block.
  • Copy to clipboard functionality with visual feedback.
  • Built with Vanilla JS, Axios, Express, and Faker.js.
  • Styled with Tailwind CSS for a clean UI.

Screenshot

Demo Screenshot

Installation

  1. Clone the repository:
git clone https://github.com/shalinv/Mock_Data_Generator.git
cd Mock_Data_Generator
  1. Install dependecies
npm install
  1. Run the server
node server.js
  1. Open the browser and checkout
http://localhost:3000/

About

This project was developed as part of the CSEA Web Development Inductions (Task 1). You can view a live demo using the link. Please note that the demo may take a few moments to load, as it is hosted on Render’s free plan.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors