Skip to content

kushal1o1/CodeShare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeShare

Project Logo

Stars Badge Forks Badge Pull Requests Badge Issues Badge GitHub contributors

One-click code sharing: Instantly share code

FeaturesDemoInstallationUsageConfigurationContributingLicenseContact

Overview

CodeShare is a web-based platform built using Django and Together AI, utilizing "meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo" for AI-powered code analysis. The platform allows users to share code with a single click, making it accessible to anyone worldwide. While there is no login requirement for viewing and analyzing code, a password is required for code submission to prevent unwanted usage

Features

  • One-click code sharing: Instantly share code
  • AI-powered analysis: Get insights, explanations, and optimizations using Llama AI.
  • No login required: View and analyze shared code without signing up.
  • Responsive UI: Works seamlessly on desktop and mobile devices.
  • Password-protected submissions: Secure code submissions to prevent spam

Demo

Demo

Screenshot

Screenshot 2
Screenshot 1

Installation

# Clone the repository
git clone https://github.com/kushal1o1/CodeShare.git

# Navigate to the project directory
cd CodeShare

#create Virtual env(Recommended)
# Install dependencies
pip install -r requirements.txt

Prerequisites

  • python
  • django
  • together api

Usage

python manage.py makemigrations
python manage.py migrate
python manage.py runserver

Configuration

Configuration File

nth

Environment Variables

Variable Description Default
SECRET_KEY Secretkey Secretkey putanykey
DEBUG boolean True/False
ALLOWED_HOSTS for alowing host localhost
PASSWORD forSavingCode putAny
API_KEY_TOGETHER_CLIENT apikey putYours

Directory Structure

/CodeShare/
├─] .env (ignored)
├── .gitignore
├── app1/
│   ├── admin.py
│   ├── apps.py
│   ├── migrations/  
│   ├── models.py
│   ├── static/
│   │   ├── admin/
│   │   └── images/
│   │       └── logo.png
│   ├── templates/
│   │   └── app1/
│   │       ├── AnalyzeCode.html
│   │       ├── base.html
│   │       └── index.html
│   ├── tests.py
│   ├── urls.py
│   ├── utils.py
│   ├── views.py
│   ├── __init__.py
├── CPYPASTER/
│   ├── asgi.py
│   ├── settings.py
│   ├── urls.py
│   ├── views.py
│   ├── wsgi.py
│   ├── __init__.py
├─] db.sqlite3 (ignored)
├── manage.py
├── README.md
├── requirements.txt
└── templates/
    └── index.html

Technologies Used

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Please make sure to update tests as appropriate and adhere to the code of conduct.

License

This project is licensed under the MIT License.

Contact

share.kusal@gmail.com


Made with ❤️ by kushal1o1