Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alejandro-ao/openai-sql-generator
Simple app in React and Node that interacts with OpenAI's ChatGPT API
https://github.com/alejandro-ao/openai-sql-generator
chatgpt-api openai-api text-completion
Last synced: about 3 hours ago
JSON representation
Simple app in React and Node that interacts with OpenAI's ChatGPT API
- Host: GitHub
- URL: https://github.com/alejandro-ao/openai-sql-generator
- Owner: alejandro-ao
- Created: 2023-04-02T13:33:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-04-13T18:30:04.000Z (over 1 year ago)
- Last Synced: 2024-09-14T23:33:33.593Z (about 2 months ago)
- Topics: chatgpt-api, openai-api, text-completion
- Language: JavaScript
- Homepage:
- Size: 67.4 KB
- Stars: 37
- Watchers: 3
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - alejandro-ao/openai-sql-generator - Simple app in React and Node that interacts with OpenAI's ChatGPT API (JavaScript)
README
# Natural Language to SQL Query Converter
This is a full stack app that converts natural language English to SQL queries using OpenAI's GPT-3.5 architecture and text completion API. The app has a client and a server, each with its own npm packages.
The tutorial to build this application is [on youtube](https://youtu.be/kjUSOa_KOts).
## Getting Started
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.
### Installing Dependencies
To install the dependencies for the client, navigate to the client folder and run the following command:
```bash
npm install
```To install the dependencies for the server, navigate to the server folder and run the following command:
```
npm install
```## Running the Client
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:3000/.
## Running the Server
To run the server, navigate to the server folder and run the following command:
```
npm start
```## Technologies
The front end is built with React, and the back end is built with Node.js and Express.
[![GPLv3 License](https://img.shields.io/badge/License-GPL%20v3-yellow.svg)](https://opensource.org/licenses/)