Skip to content

guptag0808/Code_Converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code Converter

Code Converter is a web application that allows users to convert code snippets from one programming language to another using the power of OpenAI's GPT-3 language model. It provides a simple and intuitive interface for code conversion, making it convenient for developers to quickly translate code between different programming languages.

Features

  • Convert code snippets from one programming language to another.
  • Supports popular programming languages such as JavaScript, Python, Java, and C#.
  • Interactive user interface with input and output code boxes.
  • Responsive design ensuring a seamless experience across devices.

Installation

1. Clone the repository:

- git clone https://github.com/chetandabli/code_converter.git

2. Install the dependencies:

  - npm install

Set up the OpenAI API key:

- Rename the .env.example file to .env.
- Replace YOUR_OPENAI_API_KEY with your actual OpenAI API key in the .env file.

Usage

Start the server:

- node server.js
  1. Access the application by opening http://localhost:3000 in your web browser.
  2. Enter the code snippet in the "Code" box.
  3. Select the target programming language from the dropdown menu.
  4. Click the "Convert" button.
  5. The converted code will be displayed in the "Generated Code" box.

Contributing

Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.

About

Allows users to convert code snippets from one programming language to another using the power of OpenAI's GPT-3 language model

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors