Skip to content

🐙 Generate mock data effortlessly from TypeScript interfaces in a web application powered by Next.js and NextUI.

License

Notifications You must be signed in to change notification settings

gimnathperera/mocktopus

Repository files navigation

Project Logo

Mocktopus | TypeScript Interface Mock Data Generator

License Next.js Version TypeScript Version

Generate mock data effortlessly from TypeScript interfaces in a web application powered by Next.js and NextUI.

image

Table of Contents

About

The TypeScript Interface Mock Data Generator is a user-friendly web application built with Next.js, NextUI, and TypeScript. It simplifies the process of generating mock data for TypeScript projects. Just provide one or more TypeScript interfaces, and the application will generate one or multiple rows of mock data for you.

Features

  • TypeScript Interface-Based: Input your TypeScript interfaces to generate data that matches your data structure.

  • Multiple Data Types: Supports a wide range of data types, including numbers, strings, dates, and custom types.

  • Customization: Fine-tune the generated data by specifying rules, formats, and constraints.

  • Realistic Data: Create realistic data by defining ranges, patterns, and dependencies.

  • Preview: Visualize and preview the generated data before exporting it.

  • Export Data: Export the generated mock data in various formats (JSON, CSV, etc.).

  • Save Templates: Save and reuse your interface templates for future use.

  • Interactive Web Interface: A sleek and user-friendly web application built with NextUI.

  • MIT License: Open-source and available for use in your projects.

Getting Started

  1. Clone this repository:

git clone https://github.com/your-username/your-project-name.git

  1. Install dependencies:

    cd your-project-name yarn install

  2. Run dev server: yarn dev

  3. Open your browser and visit http://localhost:3000.

Usage

  1. Input TypeScript Interfaces: Define your TypeScript interfaces in the application.
  2. Configure Data Generation: Set rules, constraints, and formats for each field.
  3. Preview Data: Visualize the generated mock data.
  4. Export Data: Download the generated data in various formats.

Contributing

We welcome contributions from the community! To contribute to this project, please follow our Contributing Guidelines.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Made with ❤️ by Gimnath Perera