giovanni-iannaccone / mockGPT

Mock data generator with ChatGPT and Docker integration 🎬

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MockGPT logo

πŸ§ͺ mockGPT

A mock data generator fully integrated with chat-gpt and docker.

πŸ›Έ Installation

πŸ“œ Prerequisites

  • Any enviroment to run php
  1. Clone the repository
git clone https://github.com/giovanni-iannaccone/mockGPT

βš™ On xampp

  1. Move the mockGPT folder inside /xampp/htdocs
  2. Start apache

🐳 On Docker

  1. Enter the directory
cd mockGPT
  1. Build and run using the compose
docker-compose up -d

πŸ›  Write configurations

Create a .json file with this structure

{
    "return_types": {
    
    },
    "number_of_data_to_generate": "the int number of mock data",

    "chat_gpt_api_key": "YOUR_API_KEY"
}
  • return_types: it basically represent the structure of the json file that will be returned with the data type of each field, chat gpt will use them so you can type whatever you want but if you want to generate images you must write IMAGE

  • number_of_data_to_generate: how many of the mock data will be generated

πŸ‘¨β€πŸ’» Using

Go to http://localhost:[PORT]/index.php?configurations=[CONFIGURATION_FILE].json

  • [PORT]: this must be the port the php server is running on
  • [CONFIGURATION_FILE]: this must be the path to the configuration file for mockGPT

Send an http request ( using axios, fetch or any method you like ) to the url and retrieve the data in json format.

🧩 Contributing

We welcome contributions! Please follow these steps:

  1. Fork the repository.
  2. Create a new branch ( using this convention).
  3. Make your changes and commit them with descriptive messages.
  4. Push your changes to your fork.
  5. Create a pull request to the main repository.

βš– License

This project is licensed under the GPL-3.0 License. See the LICENSE file for details.

βš” Contact

For any inquiries or support, please contact iannacconegiovanni444@gmail.com
Visit my site for more informations about me and my work https://giovanni-iannaccone.github.io

About

Mock data generator with ChatGPT and Docker integration 🎬

License:GNU General Public License v3.0


Languages

Language:PHP 96.4%Language:Dockerfile 3.6%