Giter Site home page Giter Site logo

asimji / code_convertor Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 395 KB

This project empowers developers to seamlessly convert their code into different programming languages, perform real-time debugging, and ensure code quality.

Home Page: https://code-convertor-kappa.vercel.app/

JavaScript 75.56% HTML 15.86% CSS 8.57%
api chakra-ui express node openaiapi reactjs

code_convertor's Introduction

Code Convertor

This repository contains the code for the Shayari Generation web application. The application allows users to convert, debug and quality check of Code. It consists of both frontend and backend components.

Prerequisites

  • Node.js (v12 or higher)

Getting Started

  1. Clone the repository:

    git clone https://github.com/Asimji/Code_Convertor.git
    cd Code_Convertor
    
  2. Install dependencies for both frontend and backend:

    cd frontend
    npm install
    cd ../backend
    npm install
    
  3. Set up environment variables for the backend:

    Create a .env file in the backend folder and provide your OpenAI API key:

    OPENAI_API_KEY=your_openai_api_key_here
    PORT=8000
    

    Replace your_openai_api_key_here with your actual OpenAI API key.

  4. Start the frontend development server:

    cd frontend
    npm start
    

    The frontend will run on https://code-convertor-kappa.vercel.app/.

  5. Start the backend server:

    cd backend
    npm start
    

    The backend will run on http://localhost:8000.

Frontend

The frontend is built using React.js and Chakra UI for the user interface. It communicates with the backend API to generate content based on user-provided keywords.

Homepage

Backend

The backend is built using Express.js and interacts with the OpenAI API to generate Shayari, Jokes, Stories, and Quotes based on user-provided keywords.

Deployed URL

The web application is deployed at: https://ai-content-generation.vercel.app/

Dependencies

Frontend

  • react: JavaScript library for building user interfaces
  • react-dom: Integration of React with the DOM
  • fetch: Promise-based HTTP client for making API requests
  • @chakra-ui/react: UI component library for React
  • framer-motion: Library for animations in React

Backend

  • express: Web framework for Node.js
  • dotenv: Load environment variables from .env file
  • cors: Enable Cross-Origin Resource Sharing (CORS)
  • openai: Official OpenAI GPT-3 API library

How to Use

  1. The application allows users to conver, debug, quality check of Code.

  2. Enter a Code in the "Left Side" Container.

  3. Select the options you want to perform action .

  4. For Convert option Select the language(java/c/c++/python..) and press convert button.

  5. For Debug and Quality Check directly press buttons.

Contributing

If you find any issues or have suggestions for improvement, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE for details.

code_convertor's People

Contributors

asimji avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.