Skip to content

rahul01879/code-sharing-backend

Repository files navigation


⚙️ CodeX – Code Sharing Platform (Backend)

# CodeX – Code Sharing Platform (Backend)

This repository contains the backend for CodeX, a scalable code sharing platform. It provides APIs for authentication, snippet management, collaboration, and AI-powered features.

---

## Features

### Authentication and Authorization
- JWT-based authentication  
- Secure and protected API routes  
- User-specific data handling  

### Snippet Management
- Create, update, and delete snippets  
- Visibility control (public or private)  
- Language and tag support  
- Version history tracking  

### Search and Discovery
- Keyword-based search  
- Tag filtering and navigation  
- Trending and recent snippet logic  

### Collaboration System
- Comment APIs  
- Line-based code review threads  
- Threaded replies  
- Review status handling (open, resolved, reopened)  

### AI Integration
- Code analysis endpoints  
- Code explanation APIs  
- Tag suggestion system  
- Code improvement and transformation  

### External Integrations
- GitHub sync support  
- Snippet export and sharing  

### Sandbox Mode Support
- Restricted actions in preview mode  
- Safe API behavior for demo usage  

---

## Tech Stack

- Node.js  
- Express.js  
- MongoDB  
- JWT Authentication  
- REST API  

---

## Setup Instructions

### Run Backend
```bash
cd backend
npm install
npm run dev

API Structure /auth → Authentication routes /snippets → Snippet operations /comments → Comments and reviews /ai → AI-related features Frontend Repository

https://github.com/rahul01879/code-sharing-frontend

Author

Rahul Sharma

https://github.com/rahul01879

About

Node.js backend with JWT authentication and REST APIs for managing users and code snippets using MongoDB.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors