# chinmaypatil44/campushare-x-skillswap architecture

> Architecture diagram of the GitHub repository chinmaypatil44/campushare-x-skillswap, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/chinmaypatil44/campushare-x-skillswap
- Repository: https://github.com/chinmaypatil44/campushare-x-skillswap

## Overview

CampuShare × SkillSwap is a campus-focused student platform combining identity and registration with academic resources, peer mentorship, course discovery, and a circular marketplace. The visible registration servlet validates student details and writes the identity record through JDBC; the servlet also redirects back to the registration page. The README documents broader product modules and two databases, but most corresponding handlers and database schemas are not present in the supplied tree, so those branches are shown at documented subsystem level. The tree contains a second demo copy; the graph focuses on CSXSS, whose sampled servlet targets the documented ssxcs database.

Main entry points: [`CSXSS/WEB-INF/classes/csxss/UserRegistrationServlet.java`](https://github.com/chinmaypatil44/campushare-x-skillswap/blob/main/CSXSS/WEB-INF/classes/csxss/UserRegistrationServlet.java) (Registration handler), [`CSXSS/E-Library.html`](https://github.com/chinmaypatil44/campushare-x-skillswap/blob/main/CSXSS/E-Library.html) (Academic e-library), [`CSXSS/WEB-INF/classes/csxss/DatabaseConnection.java`](https://github.com/chinmaypatil44/campushare-x-skillswap/blob/main/CSXSS/WEB-INF/classes/csxss/DatabaseConnection.java) (JDBC connection), [`CSXSS/WEB-INF/classes/csxss/MasterTableServlet.java`](https://github.com/chinmaypatil44/campushare-x-skillswap/blob/main/CSXSS/WEB-INF/classes/csxss/MasterTableServlet.java) (Registered users)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_identity["Identity"]
  node_registration["Registration form"]
  node_registration_servlet["Registration handler"]
  node_user_directory["Registered users"]
  node_login["Login page<br/>[Login.html]"]
  node_validation["Mentor validation"]
  node_login_service["Login and identity service"]
end

subgraph group_learning["Learning"]
  node_library["Academic e-library<br/>[E-Library.html]"]
  node_syllabi["Course syllabi"]
  node_pyqs["Past papers<br/>[FE PYQs.pdf]"]
  node_mentorship_form["Mentor registration"]
  node_mentorship["Mentorship portal"]
  node_course_discovery["Course discovery<br/>[courses.html]"]
end

subgraph group_marketplace["Marketplace"]
  node_marketplace["Gear marketplace<br/>[CampuShare.html]"]
  node_listings["Marketplace listings<br/>[listing.html]"]
end

subgraph group_platform["Platform"]
  node_jdbc["JDBC connection"]
  node_identity_db[("Identity database")]
  node_community["Student community"]
  node_home["Platform home<br/>[HomePg.html]"]
end

node_student(("Student"))

node_student -->|"opens"| node_home
node_student -->|"registers through"| node_registration
node_registration -.->|"submits to"| node_registration_servlet
node_registration_servlet -->|"gets connection"| node_jdbc
node_registration_servlet -->|"inserts profile"| node_identity_db
node_jdbc -->|"connects to"| node_identity_db
node_user_directory -->|"gets connection"| node_jdbc
node_user_directory -->|"reads profiles"| node_identity_db
node_student -->|"signs in"| node_login
node_login -.->|"uses SSO"| node_login_service
node_student -->|"accesses"| node_library
node_library -->|"provides"| node_syllabi
node_library -->|"provides"| node_pyqs
node_student -->|"books guidance"| node_mentorship
node_mentorship_form -.->|"submits for validation"| node_validation
node_student -->|"discovers courses"| node_course_discovery
node_student -->|"exchanges gear"| node_marketplace
node_marketplace -.->|"shows listings"| node_listings
node_student -->|"connects through"| node_community

click node_registration "https://github.com/chinmaypatil44/campushare-x-skillswap/blob/main/CSXSS/Registrationpg.html"
click node_registration_servlet "https://github.com/chinmaypatil44/campushare-x-skillswap/blob/main/CSXSS/WEB-INF/classes/csxss/UserRegistrationServlet.java"
click node_jdbc "https://github.com/chinmaypatil44/campushare-x-skillswap/blob/main/CSXSS/WEB-INF/classes/csxss/DatabaseConnection.java"
click node_user_directory "https://github.com/chinmaypatil44/campushare-x-skillswap/blob/main/CSXSS/WEB-INF/classes/csxss/MasterTableServlet.java"
click node_login "https://github.com/chinmaypatil44/campushare-x-skillswap/blob/main/CSXSS/Login.html"
click node_validation "https://github.com/chinmaypatil44/campushare-x-skillswap/blob/main/CSXSS/mentor-validation.jsp"
click node_library "https://github.com/chinmaypatil44/campushare-x-skillswap/blob/main/CSXSS/E-Library.html"
click node_syllabi "https://github.com/chinmaypatil44/campushare-x-skillswap/tree/main/CSXSS"
click node_pyqs "https://github.com/chinmaypatil44/campushare-x-skillswap/blob/main/CSXSS_demo/FE%20PYQs.pdf"
click node_mentorship_form "https://github.com/chinmaypatil44/campushare-x-skillswap/blob/main/CSXSS/mentor_registration_form.html"
click node_mentorship "https://github.com/chinmaypatil44/campushare-x-skillswap/blob/main/CSXSS/mentorship_directory.html"
click node_course_discovery "https://github.com/chinmaypatil44/campushare-x-skillswap/blob/main/CSXSS/courses.html"
click node_marketplace "https://github.com/chinmaypatil44/campushare-x-skillswap/blob/main/CSXSS/CampuShare.html"
click node_listings "https://github.com/chinmaypatil44/campushare-x-skillswap/blob/main/CSXSS/listing.html"
click node_community "https://github.com/chinmaypatil44/campushare-x-skillswap/blob/main/CSXSS/community_page.html"
click node_home "https://github.com/chinmaypatil44/campushare-x-skillswap/blob/main/CSXSS/HomePg.html"
click node_login_service "https://github.com/chinmaypatil44/campushare-x-skillswap/tree/main/CSXSS"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_registration,node_registration_servlet,node_user_directory,node_login,node_validation,node_login_service toneBlue
class node_library,node_syllabi,node_pyqs,node_mentorship_form,node_mentorship,node_course_discovery toneAmber
class node_marketplace,node_listings toneMint
class node_jdbc,node_identity_db,node_community,node_home toneRose
class node_student toneIndigo
```

## Components

### Identity

- [Registration form](https://github.com/chinmaypatil44/campushare-x-skillswap/blob/main/CSXSS/Registrationpg.html): `CSXSS/Registrationpg.html`
- [Registration handler](https://github.com/chinmaypatil44/campushare-x-skillswap/blob/main/CSXSS/WEB-INF/classes/csxss/UserRegistrationServlet.java): `CSXSS/WEB-INF/classes/csxss/UserRegistrationServlet.java`
- [Registered users](https://github.com/chinmaypatil44/campushare-x-skillswap/blob/main/CSXSS/WEB-INF/classes/csxss/MasterTableServlet.java): `CSXSS/WEB-INF/classes/csxss/MasterTableServlet.java`
- [Login page](https://github.com/chinmaypatil44/campushare-x-skillswap/blob/main/CSXSS/Login.html): `CSXSS/Login.html`
- [Mentor validation](https://github.com/chinmaypatil44/campushare-x-skillswap/blob/main/CSXSS/mentor-validation.jsp): `CSXSS/mentor-validation.jsp`
- [Login and identity service](https://github.com/chinmaypatil44/campushare-x-skillswap/tree/main/CSXSS): `CSXSS`

### Learning

- [Academic e-library](https://github.com/chinmaypatil44/campushare-x-skillswap/blob/main/CSXSS/E-Library.html): `CSXSS/E-Library.html`
- [Course syllabi](https://github.com/chinmaypatil44/campushare-x-skillswap/tree/main/CSXSS): `CSXSS`
- [Past papers](https://github.com/chinmaypatil44/campushare-x-skillswap/blob/main/CSXSS_demo/FE%20PYQs.pdf): `CSXSS_demo/FE PYQs.pdf`
- [Mentor registration](https://github.com/chinmaypatil44/campushare-x-skillswap/blob/main/CSXSS/mentor_registration_form.html): `CSXSS/mentor_registration_form.html`
- [Mentorship portal](https://github.com/chinmaypatil44/campushare-x-skillswap/blob/main/CSXSS/mentorship_directory.html): `CSXSS/mentorship_directory.html`
- [Course discovery](https://github.com/chinmaypatil44/campushare-x-skillswap/blob/main/CSXSS/courses.html): `CSXSS/courses.html`

### Marketplace

- [Gear marketplace](https://github.com/chinmaypatil44/campushare-x-skillswap/blob/main/CSXSS/CampuShare.html): `CSXSS/CampuShare.html`
- [Marketplace listings](https://github.com/chinmaypatil44/campushare-x-skillswap/blob/main/CSXSS/listing.html): `CSXSS/listing.html`

### Platform

- [JDBC connection](https://github.com/chinmaypatil44/campushare-x-skillswap/blob/main/CSXSS/WEB-INF/classes/csxss/DatabaseConnection.java): `CSXSS/WEB-INF/classes/csxss/DatabaseConnection.java`
- **Identity database**
- [Student community](https://github.com/chinmaypatil44/campushare-x-skillswap/blob/main/CSXSS/community_page.html): `CSXSS/community_page.html`
- [Platform home](https://github.com/chinmaypatil44/campushare-x-skillswap/blob/main/CSXSS/HomePg.html): `CSXSS/HomePg.html`

### Other components

- **Student**

## Connections

- Student → Platform home: opens (evidence: `README.md`)
- Student → Registration form: registers through (evidence: `README.md`)
- Registration form → Registration handler: submits to
- Registration handler → JDBC connection: gets connection (evidence: `CSXSS/WEB-INF/classes/csxss/UserRegistrationServlet.java`)
- Registration handler → Identity database: inserts profile (evidence: `CSXSS/WEB-INF/classes/csxss/UserRegistrationServlet.java`)
- JDBC connection → Identity database: connects to (evidence: `CSXSS/WEB-INF/classes/csxss/DatabaseConnection.java`)
- Registered users → JDBC connection: gets connection (evidence: `CSXSS/WEB-INF/classes/csxss/MasterTableServlet.java`)
- Registered users → Identity database: reads profiles (evidence: `CSXSS/WEB-INF/classes/csxss/MasterTableServlet.java`)
- Student → Login page: signs in (evidence: `README.md`)
- Login page → Login and identity service: uses SSO
- Student → Academic e-library: accesses (evidence: `README.md`)
- Academic e-library → Course syllabi: provides (evidence: `README.md`)
- Academic e-library → Past papers: provides (evidence: `README.md`)
- Student → Mentorship portal: books guidance (evidence: `README.md`)
- Mentor registration → Mentor validation: submits for validation
- Student → Course discovery: discovers courses (evidence: `README.md`)
- Student → Gear marketplace: exchanges gear (evidence: `README.md`)
- Gear marketplace → Marketplace listings: shows listings
- Student → Student community: connects through (evidence: `README.md`)
