How pranavrelanto/21jumpstreeteditor works
This backend provides organization-scoped user access and collaborative project file management. A user signs up, verifies email, obtains approval, and logs in to receive a session; authenticated API routes then support organization and project administration, membership, folder navigation, and file operations. FastAPI routes delegate domain work to services, which use SQLAlchemy models through database sessions. The excerpts establish the central route-to-service and authentication flow; unsampled service details are represented as capability nodes without speculative internal links.
Main entry points: main.py FastAPI app · auth.py Session authorization · user.py Identity records · db.py PostgreSQL
Components 16
API surface
- FastAPI app
backend/app/main.py - User routes
backend/app/routes/user_routes.py - Organization routes
backend/app/routes/org_routes.py - Project routes
backend/app/routes/project_routes.py - Folder routes
backend/app/routes/folder_routes.py - File routes
backend/app/routes/file_routes.py
Identity and organizations
- Session authorization
backend/app/utils/auth.py - Account lifecycle
backend/app/services/user_service.py - Identity records
backend/app/models/user.py - Organization management
backend/app/services/org_service.py
Project collaboration
- Project management
backend/app/services/project_service.py - Folder operations
backend/app/services/folder_service.py - File operations
backend/app/services/file_service.py - Project records
backend/app/models/project.py
Persistence
- PostgreSQL
backend/app/db.py
Other components
- User
Connections 27
- User → FastAPI app: sends requests
backend/app/main.py - FastAPI app → User routes: registers routes
backend/app/main.py - FastAPI app → Organization routes: registers routes
backend/app/main.py - FastAPI app → Project routes: registers routes
backend/app/main.py - FastAPI app → Folder routes: registers routes
backend/app/main.py - FastAPI app → File routes: registers routes
backend/app/main.py - FastAPI app → PostgreSQL: creates tables
backend/app/main.py - User routes → Account lifecycle: calls lifecycle
backend/app/routes/user_routes.py - User routes → Session authorization: uses guards
backend/app/routes/user_routes.py - Organization routes → Organization management: calls management
backend/app/routes/org_routes.py - Organization routes → Session authorization: uses guards
backend/app/routes/org_routes.py - Project routes → Project management: calls operations
backend/app/routes/project_routes.py - Project routes → Session authorization: uses guards
backend/app/routes/project_routes.py - Folder routes → Folder operations: calls operations
backend/app/routes/folder_routes.py - Folder routes → Session authorization: uses guards
backend/app/routes/folder_routes.py - File routes → File operations: calls operations
backend/app/routes/file_routes.py - File routes → Session authorization: uses guards
backend/app/routes/file_routes.py - Session authorization → PostgreSQL: queries sessions
backend/app/utils/auth.py - Session authorization → Identity records: loads user
backend/app/utils/auth.py - Account lifecycle → Identity records: manages records
backend/app/services/user_service.py - Organization management → Identity records: uses identity data
backend/app/services/org_service.py - Project management → Project records: manages project data
backend/app/services/project_service.py - Project management → Identity records: checks membership
backend/app/services/project_service.py - Folder operations → Project records: uses folder data
backend/app/services/folder_service.py - File operations → Project records: uses file data
backend/app/services/file_service.py - PostgreSQL → Identity records: registers mappings
backend/app/db.py - PostgreSQL → Project records: registers mappings
backend/app/db.py