Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added hackathon/DevNest(Novathon)/README.md

DevNest

Code, Collab and Contribute Together!


Description

DevNest is an all-in-one collaboration platform designed to streamline team coding and development workflows. Whether you're working with a single teammate or an entire team, DevNest provides tools to collaborate in real-time, debug code using AI assistance, and communicate seamlessly—all without leaving the platform.

Features

  • Live Share: Collaborate on code in real-time, seeing changes instantly.
  • AI Chatbot: Debug code and receive AI-powered coding assistance.
  • Tooltips: Visual indicators to track code changes made by team members.
  • Group Chats: Built-in chat system to communicate with your team.

Why DevNest?

Unlike other platforms, DevNest integrates collaboration, communication, and AI assistance into one powerful platform, eliminating the need for multiple tools and boosting productivity.


Badges

Build Status
License
Contributions Welcome
PRs


Visuals

Live Share in Action

Live Share Example 1 Live Share Example 2 Live Share Example 2 Live Share Example 2

AI Chatbot

AI Chatbot


Installation

Prerequisites

  • Node.js (v14 or higher)
  • MongoDB (for database)
  • React (Frontend)
  • Flask (Backend)

Steps to Set Up DevNest

  1. Clone the repository:
    bash git clone https://github.com/Krishnas-world/devnest.git cd devnest

  2. Install frontend dependencies:
    bash cd client npm install

  3. Set up the backend by navigating to the backend folder and installing dependencies:
    bash cd server npm install // Also load the AI Model, provided by LLMWare for the chatbot integration pip install -r requirements.txt

  4. Start the development servers:

    • client and server:
      bash npm run dev

    • server(python):
      bash python app.py

  5. Visit the application at http://localhost:3000.


Usage

Example: Live Share Collaboration

  • Open the DevNest platform with your team.
  • Select a project, and start collaborating in real-time with Live Share.
  • See tooltips to track who is making changes to specific parts of the code.

Example: AI Chatbot Assistance

  • Open the AI Chatbot panel and paste your code snippet.
  • Receive suggestions, debug assistance, and optimized solutions instantly.

Group Chats

  • Navigate to the Team Chat section.
  • Start or join group discussions about your project.

Support

If you have questions or need help, you can:


Roadmap

Future features we plan to include:

  1. Version Control Integration: Support for GitHub and GitLab repositories.
  2. Enhanced AI Capabilities: Add features like auto-suggestions for code refactoring.
  3. Customizable Themes: Allow users to customize the UI according to their preferences.
  4. Blockchain Integration: Enable secure team tracking using blockchain technology.

Contributing

We welcome contributions from the community!

How to Contribute

  1. Fork the repository.

  2. Create a new branch for your feature or bug fix:
    bash git checkout -b feature-name

  3. Make your changes and commit them:
    bash git commit -m "Describe your feature or fix"

  4. Push your branch to GitHub:
    bash git push origin feature-name

  5. Open a Pull Request on the original repository.

Please ensure your code passes all tests and adheres to the contribution guidelines.


Authors and Acknowledgments

Team DevNest:

  • Krishna - Developer
  • Mukesh - AI Specialist
  • Gauthami - UI/UX Designer
  • Poorvi - Developer

A big thank you to everyone contributing to DevNest and helping us improve!


License

This project is licensed under the MIT License. See the LICENSE file for more details.


Project Status

DevNest is actively being developed!
We are working hard to add new features, improve existing ones, and make DevNest the go-to platform for collaborative coding.


Let me know if you want further refinements or additional sections! 😊

Binary file not shown.
61 changes: 61 additions & 0 deletions hackathon/DevNest(Novathon)/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
from flask import Flask, request, jsonify
from llmware.models import ModelCatalog
from llmware.gguf_configs import GGUFConfigs

# Set global configurations for the model
GGUFConfigs().set_config("max_output_tokens", 250)

# Initialize Flask app
app = Flask(__name__)

# Load the model with GPU acceleration enabled
MODEL_NAME = "llama-2-7b-chat-gguf"
model = None

try:
model = ModelCatalog().load_model(
MODEL_NAME,
temperature=0.3,
sample=True,
max_output=250,
use_gpu=True # Ensure GPU is used if available
)
print("Model loaded successfully with GPU acceleration.")
except Exception as e:
print(f"Failed to load the model: {e}")
model = None

@app.route("/index")
def index():
"""Health check endpoint"""
return jsonify({"message": "LLM Chat API is running!"})

@app.route("/chat", methods=["POST"])
def chat():
"""
POST endpoint to send a prompt to the model and receive a response.
"""
global model
if not model:
return jsonify({"error": "Model not loaded. Please check server logs."}), 500

try:
# Parse input JSON
input_data = request.get_json()
prompt = input_data.get("prompt", None)

if not prompt:
return jsonify({"error": "Missing 'prompt' in request body."}), 400

# Generate response using the model
model_response = model.inference(prompt)
bot_response = model_response.get("llm_response", "No response generated.")

# Return the response
return jsonify({"prompt": prompt, "response": bot_response})

except Exception as e:
return jsonify({"error": f"Error during inference: {str(e)}"}), 500

if __name__ == "__main__":
app.run(debug=True, host="0.0.0.0", port=5000) # Make it accessible on all network interfaces
Binary file added hackathon/DevNest(Novathon)/images/bg1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added hackathon/DevNest(Novathon)/images/bg2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added hackathon/DevNest(Novathon)/images/bg3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added hackathon/DevNest(Novathon)/images/bg4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added hackathon/DevNest(Novathon)/images/bg5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.