Empowering developers and learners through multilingual code translation, real-time execution, and a collaborative learning community.
Code Bridge is a full-stack educational platform that helps users translate, debug, and run code between programming languages like Python and JavaScript in real time. The frontend is built with React.js, following best practices in component structure, state management, and service abstraction.
This repository contains the frontend source code for Code Bridge. It includes:
- Multi-tab code editor
- Live translation and execution interface
- User authentication and profiles
- Social community features (posts, comments, followers)
- Admin dashboard tools
- ⚛️ React.js — Frontend Framework
- 📦 Axios — For API integration
- 💾 JWT — Token-based session handling
- 🧭 React Router DOM — Page navigation
- 🎨 Custom CSS — Fully responsive UI/UX
codebridgefront/
├── public/
├── src/
│ ├── components/ # Reusable UI components (Navbar, Editor)
│ ├── pages/ # Route views (Home, Profile, Coding, Admin)
│ ├── services/ # API abstraction (auth, admin, code, translate)
│ ├── styles/ # Component-level CSS files
│ └── App.js # Route configuration
│ └── index.js # React root
├── .env # Environment config
├── package.json
- 📝 Code Translation — Real-time translation between JS and Python
- 🧪 Run & Debug — Simulated output & error reporting
- 👤 Profile Page — Edit bio, avatar, and personal info
- 📁 Project Upload — Upload zipped code projects (public/private)
- 🗨️ Community — Post questions, like, and comment
- 🔗 Follow System — Follow users and view their posts
- 🧑💼 Manage Users — View, block, or delete users
- 📰 Publish News — Add language or platform-related updates
- 🧹 Moderate Posts — Remove inappropriate content
- JWT-based Auth — Stored in
localStorage - Role Handling — Users vs. Admins
- Protected Routes — Community, Coding, and Profile pages require login
- Auto Redirect — Logout redirects to Home
- Node.js v18+
- Git
- React Dev Tools (recommended)
-
Clone the repository:
git clone https://github.com/yourusername/codebridgefront.git cd codebridgefront -
Install dependencies:
npm install
-
Create a
.envfile:REACT_APP_API_URL=http://localhost:5000/api -
Start the development server:
npm run dev
-
Visit
http://localhost:5173
- Manually test login, registration, and profile editing
- Run multiple translation tabs simultaneously
- Try uploading and downloading a
.zipproject - Test post/comment creation & deletion
- Use admin credentials to access
/admin/dashboard
| Feature | Screenshot |
|---|---|
| Code Editor | ✅ Included |
| Profile Page | ✅ Included |
| Community | ✅ Included |
| Admin Panel | ✅ Included |
For full screenshots, refer to the
/docs/screenshots/directory.
We welcome contributions! To propose a fix or improvement:
- Fork the repository
- Create a feature branch (
git checkout -b feature-name) - Commit your changes (
git commit -m 'feat: ...') - Push to your fork and create a PR
This project is licensed under the MIT License.
Feel free to use, modify, and distribute with credit.
Madeby Shamam