Skip to content

Latest commit

Β 

History

28 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AWS Node.js React AI License

πŸš€ SolveForge – AI-Powered Online Coding Platform

SolveForge is a production-ready AI-powered online coding platform, deployed on AWS, that enables users to practice coding problems, execute solutions in real time, and learn efficiently through AI-guided assistance and video editorials. It showcases end-to-end full-stack engineering, secure authentication, scalable system design, and cloud-native deployment following industry best practices.


🌐 Live Demo

πŸ”— Deployed on AWS with Custom Domain & HTTPS
πŸ‘‰ https://solveforge.online OR https://www.solveforge.online


✨ Key Features

  • 🧠 AI Chat Assistant (Gemini) for hints, explanations, and guided problem-solving
  • ⚑ Real-time code execution using Piston API
  • πŸŽ₯ Video editorial solutions for each coding problem
  • πŸ” Secure authentication & logout using JWT + Redis
  • πŸŒ— Light / Dark mode support
  • πŸ” Problem search & filtering
  • ☁️ AWS deployment with SSL certificate

🧩 Supported Programming Languages

  • C++
  • Java
  • JavaScript
  • Python

(Code execution handled securely via Piston API)


πŸ—οΈ System Architecture

Frontend (React + Monaco Editor)
↓
REST APIs (Axios)
↓
Backend (Node.js + Express)
↓
Database Layer
β”œβ”€β”€ MongoDB (Users, Problems, Submissions)
└── Redis (Sessions & Logout)
↓
External Services
β”œβ”€β”€ Piston API (Code Execution)
β”œβ”€β”€ Gemini API (AI Assistant)
└── Cloudinary (Video Editorials)

πŸ‘₯ User Roles

πŸ‘€ User Capabilities

  • Solve coding problems with live execution results
  • Get help via AI Chat Assistant (Gemini):
    • Hints instead of direct answers
    • Concept explanations
    • Step-by-step guidance
  • Watch video editorial solutions
  • Read written solutions
  • Toggle light / dark mode
  • Secure logout using Redis-based token invalidation

πŸ› οΈ Admin Capabilities

  • Create coding problems
  • Edit existing problems
  • Delete problems
  • Upload video editorial solutions
  • Manage problem statements and solutions

🧠 AI Chat Assistant (Gemini)

  • Context-aware AI bot linked to the current coding problem
  • Helps users understand:
    • Problem constraints
    • Algorithms & approaches
    • Edge cases
  • Promotes learning without encouraging copy-paste solutions

πŸ› οΈ Tech Stack

πŸ”™ Backend

Technology Purpose
Node.js Runtime Environment
Express.js Web Framework
MongoDB NoSQL Database
Mongoose MongoDB ODM
Redis Session Store & Logout Handling
JWT Authentication
Piston API Code Execution Engine
Gemini API AI Assistant
Cloudinary Video Editorial Storage

🎨 Frontend

Technology Purpose
React UI Framework
Vite Build Tool & Dev Server
Monaco Editor Code Editor
React Router Navigation & Routing
Redux State Management
React Hook Form Form Handling
Zod Schema Validation
Axios HTTP Client
Tailwind CSS Styling
DaisyUI UI Components
Lucide React Icons

☁️ Deployment

  • AWS EC2
  • Custom Domain
  • SSL Certificate (HTTPS)
  • Environment-based configuration

πŸ” Environment Variables

Create a .env file inside the backend directory:

PORT=3000
DB_CONNECT_STRING = mongoDB_connection_string

JWT_KEY= your_jwt_key

# Redis
REDIS_PASS= your_redis_password
REDIS_HOSTID  = your_redis_hostId

# Gemini AI
GEMINI_KEY = gemini_api_key

# Cloudinary
CLOUDINARY_CLOUD_NAME = your_cloud_name
CLOUDINARY_API_KEY = your_api_key
CLOUDINARY_API_SECRET = your_api_secret

βš™οΈ Local Setup

1️⃣ Clone Repository

git clone https://github.com/anmol-tripathi83/SolveForge-Coding-platform

2️⃣ Backend Setup

cd backend
npm install
npm run dev

3️⃣ Frontend Setup

cd frontend
npm install
npm run dev

πŸ“Š Performance & Metrics

  • πŸš€ Supports 100+ concurrent code executions using scalable API design
  • πŸ” Redis-based logout prevents token reuse
  • ⚑ Optimized API response times
  • 🌐 99.9% uptime on AWS with HTTPS

πŸ“Έ Screenshots

πŸ” Authentication – Login

SolveForge Login Page

User login page with secure JWT-based authentication.


πŸ” Authentication – Signup

SolveForge Signup Page

User registration page with validated form inputs.


🏠 Home & Problem Listing

SolveForge Home Page

Problem dashboard with search, filtering, and light/dark mode support.


πŸ’» Code Editor & Execution

SolveForge Code Editor

Monaco-based code editor with real-time code execution using Piston API.


🧠 AI Chat Assistant (Gemini)

SolveForge AI Chat Assistant

AI-powered chat assistant providing hints, concept explanations, and guided problem-solving for the current coding question.


πŸŽ₯ Video Editorial Solution

SolveForge Video Editorial

Video editorial explaining optimal approaches, edge cases, and solution strategies.


πŸ› οΈ Admin Panel

SolveForge Admin Panel

Admin dashboard for creating, editing, deleting coding problems and managing video editorial solutions.

🎯 Why SolveForge?

SolveForge combines AI guidance, editorial learning, and real-time execution into a single platform β€” showcasing strong skills in:

  • Full-Stack Development
  • System Design
  • Secure Authentication
  • Cloud Deployment
  • AI Integration

πŸ‘€ Author

Anmol Tripathi
πŸ”— GitHub: https://github.com/anmol-tripathi83
🌐 Live Project: https://solveforge.online

About

Full Stack Coding platform for Practicing DSA.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages