Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/niteshthori24198/code-convertor
Code Converter is a versatile web application that allows users to convert code snippets between different programming languages.
https://github.com/niteshthori24198/code-convertor
css express-js html5 javascript node-js openai
Last synced: 14 days ago
JSON representation
Code Converter is a versatile web application that allows users to convert code snippets between different programming languages.
- Host: GitHub
- URL: https://github.com/niteshthori24198/code-convertor
- Owner: Niteshthori24198
- Created: 2023-08-05T16:17:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-05T18:49:47.000Z (about 1 year ago)
- Last Synced: 2024-10-11T04:25:24.927Z (about 1 month ago)
- Topics: css, express-js, html5, javascript, node-js, openai
- Language: JavaScript
- Homepage: https://code-convertor-wheat.vercel.app/
- Size: 20.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Code-Convertor
## Introduction
- Code Converter is a versatile web application that allows users to convert code snippets between different programming languages. Whether you need to translate code from JavaScript to Python, HTML to CSS, or any other combination, Code Converter has you covered. This project uses a stack of technologies, including HTML, CSS, JavaScript, Node.js, Express.js, and OpenAI, to provide a seamless code conversion experience.
## Features
- ***Multi-language Support*** : Convert code between various programming languages effortlessly.
- ***User-Friendly Interface*** : An intuitive and user-friendly interface for easy code input and output.
- ***Real-Time Conversion*** : Get instant code conversion results without the need for page reloads.
- ***Syntax Highlighting*** : Display code with syntax highlighting to improve readability.
- ***Powered by OpenAI*** : Utilizes OpenAI's powerful language models for accurate code translation.## Technologies Used
- HTML: For structuring the web page.
- CSS: For styling the user interface.
- JavaScript: For interactive elements and real-time code conversion.
- Node.js: As the backend runtime environment.
- Express.js: For handling routing and server functionality.
- OpenAI: To leverage advanced natural language processing for code translation.## Getting Started
- Clone this repository to your local machine.
- git clone https://github.com/Niteshthori24198/Code-Convertor
- Navigate to the project directory.
- cd code-converter
- Install the required dependencies.
- npm install
- Set up your OpenAI API credentials by creating a .env file in the project root directory and adding the following line :
- OPENAI_API_KEY=your-api-key
- Start the application.
- npm start
## Usage- Enter your code in the left pane.
- Select the source programming language from the dropdown.
- Choose the target programming language from the second dropdown.
- Click the ***Convert*** button.
- The converted code will appear in the right pane with syntax highlighting.## SnapShots
### Home Page
![image](https://github.com/Niteshthori24198/Code-Convertor/assets/62844049/7e2cccba-acac-4c89-a6d6-7b76dcb38428)
### Code Convertion
![image](https://github.com/Niteshthori24198/Code-Convertor/assets/62844049/f11c3ba9-8b92-4e34-9c4b-051609776009)
### Debug
![image](https://github.com/Niteshthori24198/Code-Convertor/assets/62844049/cdaaa104-f56c-4eea-826e-7c2aec34dd9f)
### Performance Check
![image](https://github.com/Niteshthori24198/Code-Convertor/assets/62844049/2d068fa2-2046-486a-872f-379ff7907235)
## Contributing
- Contributions to the Code Converter project are welcome! Feel free to open issues, submit pull requests, or provide feedback to help improve this tool.
## Acknowledgments
- Special thanks to OpenAI for providing the powerful language model used in this project.
- Inspired by the need for a simple and effective code conversion tool for developers.