Skip to content
fernando.catalan
All projects

Duoc UCWeb · Cloud

UniLib: a library management prototype

A web prototype of a university library system: search and catalog, loans, fines, analytics and administration for five roles. It had no backend: I wrote all the code in React, on mock data, and put it online on Vercel.

Role
Prototype development and deployment
Period
Jun 2026 — Jul 2026
Status
Delivered
Team
A group of four. My teammates handled the reports; the requirements specification was a team deliverable

Context

The semester case for the Software Engineering course at Duoc UC: gather the requirements of a university library system following IEEE 830, design its architecture and deliver a working prototype. The data is fictional and sign-in is simulated.

The problem

The brief aimed to replace manual processes: centralize loans, returns and inventory and offer an online catalog.

The prototype had to show those flows for five profiles with different permissions, with no backend yet, and in a way that could later be connected to one.

What I built

  • A React Router SPA: 14 pages in six modules (sign-in, search, catalog, loans, analytics and administration) and 17 reusable interface components.

  • Role-based access control on the client: protected nested routes, a permission matrix and a menu that adapts to all five roles.

  • A mock service layer: 20 asynchronous functions with artificial latency over fictional data.

  • Search with filters by category and availability, sorting, grid or list view, pagination and filters kept in sync with the URL.

  • A three-step loan wizard with business rules: book and day limits by role, a block on pending fines or an exhausted quota, and the due date calculation.

  • An analytics dashboard with seven Recharts charts, plus administration of users and loan policies.

  • A session that closes automatically after 30 minutes of inactivity.

  • Continuous deployment on Vercel from GitHub, with a rewrite that sends every route to index.html so client-side routing works.

Architecture

architecture.svgSwipe →
  • Client
  • Compute
  • Data
  • Edge and network
  • CI/CD
  • Client:
    • Browser: 5 roles
  • Application:
    • React SPA: 14 pages · role routes
    • Mock service: 20 async functions
  • Delivery:
    • Vercel: production · preview
    • GitHub: main · develop

Connections:

  • Browser → React SPA
  • React SPA → Mock service
  • Vercel → React SPA
  • GitHub → Vercel (push)

Technical decisions

  1. Mocking the backend behind a service

    Pages do not read data directly: they call asynchronous functions with artificial latency, as if an API sat behind them. That layer can be swapped for a real API without rewriting the screens.

  2. Accessibility measured with a tool

    I fixed the interface based on an automated audit: text colors with a contrast of at least 4.5:1 per WCAG 2.1, availability states that do not rely on color alone and ARIA attributes on alerts, dialogs, tabs and tables.

  3. A prototype that does not fake security

    Sign-in is simulated and permissions are only checked in the browser. That is enough to show each role's flows; in a real system the same permissions must also be enforced on the server.

Stack

Frontend
  • React 19
  • Vite
  • React Router
  • Recharts
  • JavaScript
  • CSS
Delivery
  • Vercel
  • GitHub
  • pnpm
Quality
  • ESLint
  • WCAG 2.1
  • WAI-ARIA

Outcome

  • A public online demo and an open repository.

  • 19 Vercel deployments between June and July 2026: 16 to production and 3 previews.

  • A complete frontend: 14 pages, 17 reusable components and about 7,750 lines of JavaScript, with hand-written CSS and no styling framework.

  • The prototype accompanied an IEEE 830 requirements specification written by the team.

What I learned

  • Designing role-based access control in an SPA knowing that, in a real system, it also has to be enforced on the server.

  • Fixing accessibility based on measurements: contrast, and states that do not depend on color alone.

  • Deploying an SPA with client-side routes on Vercel and using per-branch previews.

  • Sharing one repository with the team for code and reports, with main and develop branches.

Links