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.
- 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.
- Install
genezio
. Use the command below to install genezio:
npm install genezio -g
- Login to
genezio
. Run the following command to login into your account:
genezio login
- Clone this repo Copy the following command in your terminal:
git clone https://github.com/radu1122/chatpgt-db-data-mocking.git
- Add your
OPENAI_SECRET_KEY
in the.env
The file is in the following path:
chatpgt-db-data-mocking/server/.env
- 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.
- Deploy your code. Use the command below to deploy the code using
genezio
:
genezio deploy
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.
To find more details on how to use genezio
, check out the official documentation:
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.
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.
Contributions are welcome! Please see our Contributing Guide for more details.