How arkadipsom-code/texify works
Purpose and deployment shape
Texify is a campus-restricted resume builder for IIEST Shibpur students. A React/Vite client collects structured resume content, provides a live visual preview, and requests server-side LaTeX-to-PDF compilation. The frontend is intended for Vercel deployment; the Express backend runs in a Docker-capable Render environment with a system LaTeX installation.
Client entry and application shell
frontend/src/main.jsx mounts the client application. frontend/src/App.jsx composes top-level routing/application state, while frontend/src/components/Navbar.jsx and frontend/src/components/Footer.jsx provide shared shell UI. The application is not a generic document editor: its primary authenticated workflow leads users from landing/authentication into resume construction.
Authentication boundary
frontend/src/context/AuthContext.jsx owns client authentication state and makes identity available to protected UI flows. frontend/src/pages/AuthPage/AuthPage.jsx is the login gateway. Backend authentication endpoints are exposed through backend/routes/authRoutes.js and implemented in backend/controllers/authController.js; domain validation restricts access to @students.iiests.ac.in accounts. backend/middleware/authMiddleware.js is the server-side protection boundary for authenticated operations.
Resume authoring and reactive presentation
The authoring experience is centered on frontend/src/pages/ResumeBuilder/BuilderPage.jsx, which coordinates the form and preview panes. frontend/src/pages/ResumeBuilder/FormWizard.jsx manages nested resume fields—education, experience, skills, projects, and bullet-oriented content—while handling smart line-break/bullet behavior. frontend/src/pages/ResumeBuilder/LivePreview.jsx renders the current structured state immediately, independently of final PDF compilation.
Client API and document-download flow
frontend/src/services/api.js centralizes browser-to-backend requests, including authenticated calls and the compilation/download request. Resume data flows from the form state to the API as structured JSON; the compiled response returns as a binary PDF/blob for browser download. frontend/src/utils/latexParser.js is the client-side formatting/translation utility supporting resume-to-LaTeX-oriented representation.
Backend HTTP and compilation pipeline
backend/server.js is the Express process entry point and mounts authentication and resume routes. backend/routes/resumeRoutes.js receives resume operations, applies authentication middleware, and delegates to backend/controllers/resumeController.js. The controller is the key compute boundary: it interpolates structured payload data into predefined LaTeX content, invokes the host LaTeX CLI/compiler, and returns the resulting PDF stream rather than exposing compilation details to the client.
Persistence and infrastructure
backend/models/Resume.js defines persisted resume data, and backend/config/db.js initializes the database connection. The Docker build at backend/Dockerfile is architecturally material because server compilation depends on Node.js plus a functioning LaTeX distribution. Operationally, the backend’s Render free-tier cold starts can delay first requests; the Vercel frontend must tolerate that remote-service latency.
Main entry points: App.jsx Application shell · server.js Express server · resumeController.js PDF compiler · api.js Backend API client
Components 19
React client
Vite frontend deployed to Vercel.
- Client entry
frontend/src/main.jsx - Application shell
frontend/src/App.jsx - Shared navigation · Navbar and footer shared across application views.
frontend/src/components/Navbar.jsx - Resume builder · Coordinates authoring form and immediate preview.
frontend/src/pages/ResumeBuilder/BuilderPage.jsx - Resume form · Edits structured resume sections and bullet content.
frontend/src/pages/ResumeBuilder/FormWizard.jsx - Live preview · Renders structured resume state without PDF compilation.
frontend/src/pages/ResumeBuilder/LivePreview.jsx - Backend API client · Sends authenticated JSON and receives downloadable PDF blobs.
frontend/src/services/api.js - LaTeX formatter
frontend/src/utils/latexParser.js
Authentication
- Auth state · Makes authenticated identity available to protected flows.
frontend/src/context/AuthContext.jsx - Login gateway
frontend/src/pages/AuthPage/AuthPage.jsx - Auth endpoints
backend/routes/authRoutes.js - Auth controller · Restricts accounts to the IIEST student email domain.
backend/controllers/authController.js - Auth guard · Server-side boundary for authenticated resume operations.
backend/middleware/authMiddleware.js
Express compilation service
Docker-hosted backend with LaTeX available.
- Express server · Mounts authentication and resume APIs.
backend/server.js - Resume endpoints
backend/routes/resumeRoutes.js - PDF compiler · Interpolates resume data, invokes LaTeX, and streams the PDF.
backend/controllers/resumeController.js - LaTeX runtime image · Supplies Node.js and the system LaTeX distribution required by compilation.
backend/Dockerfile
Persistence
- Resume model
backend/models/Resume.js - Database connection
backend/config/db.js
Connections 21
- Client entry → Application shell: mounts
- Application shell → Shared navigation: renders
- Application shell → Auth state: uses auth state
- Application shell → Login gateway: routes to
- Application shell → Resume builder: routes to
- Login gateway → Backend API client: auth request
- Resume builder → Resume form: authors with
- Resume builder → Live preview: updates
- Resume form → LaTeX formatter: formats content
- Resume form → Backend API client: structured resume JSON
- Backend API client → Express server: authenticated HTTP / PDF blob · Remote Render service may cold-start.
- Express server → Auth endpoints: mounts
- Express server → Resume endpoints: mounts
- Auth endpoints → Auth controller: delegates
- Resume endpoints → Auth guard: protects with
- Auth guard → PDF compiler: authorizes
- PDF compiler → Resume model: persists resume data
- Database connection → Resume model: connects storage
- LaTeX runtime image → Express server: runtime image
- LaTeX runtime image → PDF compiler: provides LaTeX CLI
- PDF compiler → Backend API client: PDF stream