Skip to content

Latest commit

ย 

History

History
88 lines (66 loc) ยท 2.43 KB

File metadata and controls

88 lines (66 loc) ยท 2.43 KB

Code-Galaxy

=======

๐ŸŒŒ CodeGalaxy - MERN Stack Project

A Gamified & Visual Way to Learn Programming

๐Ÿš€ About CodeGalaxy

Programming is often hard for beginners because they cannot see what is happening behind the code.
Concepts like loops, data structures, pointers, and algorithms feel confusing when learned only through textbooks or static examples.

CodeGalaxy solves this problem by providing a visual, interactive, and game-based learning platform where students write code and instantly see step-by-step execution animations.

It helps learners understand how code works, not just what to write.

๐ŸŽฎ What Makes CodeGalaxy Special?

  • ๐ŸŽฏ Gamified Learning โ€“ Learn coding like playing a game with levels and challenges
  • ๐Ÿ‘€ Live Code Visualization โ€“ Watch loops, nodes, pointers, and algorithms work in real time
  • ๐Ÿง  Strong Fundamentals โ€“ Clear understanding of program flow and logic
  • ๐ŸŒ Multi-Language Support โ€“ Practice the same problem in Java, Python, or JavaScript
  • ๐Ÿ“Š Progress Tracking โ€“ Track completed challenges and learning growth
  • ๐Ÿ‘ถ Beginner Friendly โ€“ Simple UI, easy explanations, smooth animations

๐Ÿ› ๏ธ Tech Stack (MERN)

Frontend

  • React.js (Vite)
  • HTML, CSS, JavaScript

Backend

  • Node.js
  • Express.js
  • MongoDB
  • REST APIs

๐Ÿ“ Project Structure (Monorepo)

Structure

  • /frontend: React + Vite application (The User Interface).
  • /backend: Node.js + Express + MongoDB application (The API).

How to Run

You need to run both the frontend and backend servers simultaneously for the full application to work.

1. Start the Backend

The backend runs on http://localhost:5000.

  1. Open a terminal.
  2. Navigate to the backend folder:
    cd backend
  3. Install dependencies (if new):
    npm install
  4. Start the server:
    npm run dev

2. Start the Frontend

The frontend runs on http://localhost:5173 (usually).

  1. Open a new terminal (keep the backend running).
  2. Navigate to the frontend folder:
    cd frontend
  3. Install dependencies (if new):
    npm install
  4. Start the development server:
    npm run dev

API Documentation

See backend/server.js and route files for API details.

  • Auth: /api/auth
  • Challenges: /api/challenges
  • Progress: /api/progress