Skip to content

radu1122/chatpgt-db-data-mocking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mock Data Generator from DB Schema with ChatGPT

deployed with: genezio PRs Welcome

What is this project?

I created a prompt generator using the OpenAI(ChatGPT) API. The prompt generator is a tool that generates mock data from DB Schema. The tool is a web application that can be used to generate mock data from DB Schema.

Tools used:

  • genezio - the newest way to deploy and write servlerless backend code.
  • OpenAI - the world's most powerful AI.
  • React - a JavaScript library for building user interfaces.

Getting Started

  1. Install genezio. Use the command below to install genezio:
npm install genezio -g
  1. Login to genezio. Run the following command to login into your account:
genezio login
  1. Clone this repo Copy the following command in your terminal:
git clone https://github.com/radu1122/chatpgt-db-data-mocking.git
  1. Add your OPENAI_SECRET_KEY in the .env The file is in the following path:
chatpgt-db-data-mocking/server/.env
  1. Test the code local. Run this command to test the code:
cd ./server && genezio local
cd ./client && npm start

For more details about the genezio CLI commands, run genezio help or genezio [command] help or check out the official documentation.

  1. Deploy your code. Use the command below to deploy the code using genezio:
genezio deploy

Official documentation

How does genezio work?

genezio is using JSON RPC 2.0 to facilitate the communication between SDK and your class. Your functions are deployed in the Genezio infrastructure. The functions are not executed on a long lasting Virtual Machine. Instead, our system uses a serverless approach. Whenever a request is received, your code is loaded and executed. This is more cost and energy efficient. However, the developer needs to take into account the following - the values of the global variables are not persistent between runs.

Detailed documentation

To find more details on how to use genezio, check out the official documentation:

Getting support

If you find yourself in a pickle using genezio, drop us a GitHub issue, start a discussion with us on Discord or drop us an email at contact@genezio.io.

System requirements

  • genezio can be installed and used on macOS, Linux-based distributions and Windows.
  • A version of node >= 14.0.0 should be installed on your machine.

Contributing

Contributions are welcome! Please see our Contributing Guide for more details.