This full stack application utilizes OpenAI's GPT-4 to convert natural language descriptions into SQL queries. It comprises a React-based frontend and a Node.js/Express backend.
- Convert plain English to SQL
- Interactive web interface
- Frontend: React
- Backend: Node.js, Express
- AI model: OpenAI GPT-4 (configurable to use different models based on your needs)
Here's how the Natural Language to SQL Query Generator works:
To get started, clone the repository to your local machine and navigate to the root directory. There are two folders in the root directory: client and server. Each folder has its own package.json file and node_modules folder.
To install the dependencies for the client, navigate to the client folder and run the following command:
npm install
To run the client, navigate to the client folder and run the following command:
npm run dev
The client will be available at http://localhost:5173/.
To run the server, navigate to the server folder and run the following command:
npm start