Git Product home page Git Product logo

codekraft's Introduction

CodeKraft: Automatic Code Generator

Project Logo

Table of Contents

About The Project

This project aims to create a user-friendly tool for generating code quickly based on simple text prompts. Users can input their requirements using natural language, along with structured data like JSON objects and database schemas. The tool then generates code in real-time, tests it for reliability and efficiency, and provides a clean interface for easy interaction. Leveraging large language models, it translates prompts into intermediate steps and final code, focusing on simplicity and accuracy throughout the process. Additionally, it includes features for generating pseudocode and reports containing performance metrics to ensure efficient code generation.

Demo

Demo_CodeKaft.1.1.1.1.1.2.mp4

File Structure

👨‍💻CodeKraft
 ┣ 📂assets                            // Contains all the reference gifs, images
 ┣ 📂client                            // Frontend        
 ┃ ┃ ┣ 📂src                                      
 ┃ ┃ ┃ ┣ 📂components  
 ┃ ┃ ┃ ┃ ┣ 📄HomeInfo.jsx  
 ┃ ┃ ┃ ┃ ┣ 📄Loader.jsx
 ┃ ┃ ┃ ┃ ┣ 📄Navbar.jsx
 ┃ ┃ ┃ ┣ 📂model                       // For 3D Rendering  
 ┃ ┃ ┃ ┃ ┣ 📄Bird.jsx 
 ┃ ┃ ┃ ┃ ┣ 📄Island.jsx
 ┃ ┃ ┃ ┃ ┣ 📄Sky.jsx
 ┃ ┃ ┃ ┣ 📂pages  
 ┃ ┃ ┃ ┃ ┣ 📄Analyze.jsx
 ┃ ┃ ┃ ┃ ┣ 📄Codegen.jsx
 ┃ ┃ ┃ ┃ ┣ 📄DataContext.jsx
 ┃ ┃ ┃ ┃ ┣ 📄Home.jsx
 ┃ ┃ ┃ ┃ ┣ 📄Validate.jsx
 ┃ ┃ ┃ ┃ ┣ 📄index.js
 ┃ ┃ ┃ ┣ 📄App.jsx
 ┃ ┃ ┃ ┣ 📄index.css
 ┃ ┃ ┃ ┣ 📄main.css
 ┃ ┃ ┣ 📄index.html
 ┣ 📂model                             // Standalone model         
 ┃ ┣ 📄model.py   
 ┣ 📂server                            // Backend 
 ┃ ┣ 📄app.py   
 ┃ ┣ 📄requirements.txt
 ┣ 📄README.md

Getting Started

Installation

Clone the project by typing the following command in your Terminal/CommandPrompt

git clone https://github.com/Khushi-Balia/CodeKraft

Navigate to the CodeKraft folder

cd CodeKraft

Usage

Once the project is installed, follow the steps below to run the project:

Frontend

Open a new terminal in root folder and navigate to the client folder

cd client

Install all the required dependencies

npm i

To run the frontend

npm run dev

Once the above command is executed, the frontend will be running at localhost:5173. You can visit http://localhost:5173/ to view the website.

Backend

To generate a API Key, refer the steps as given here. Create a new file in /model directory called config.txt and paste the API key in it.

Open a new terminal in root folder and navigate to the server folder

cd server

Create a virtual environment to install all the dependencies

python -m venv codekraft

Activate the virtual environment

For Windows: codekraft\Scripts\activate

For Linux: source codekraft/bin/activate

Install all the required dependencies

pip install -r requirements.txt

To run the backend

python app.py

Screenshots of Website

Landing page of the website Generating an SQL query Generating a C++ code

Contributors

License

MIT License

codekraft's People

Contributors

pritk99 avatar khushi-balia avatar shark-21 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.