Files
borrow-system/README.md

4.4 KiB
Raw Permalink Blame History

Borrow System

React TypeScript Vite TailwindCSS Node.js Express MySQL Docker JWT

A small fullstack system to log in, view available items, reserve them for a time window, and manage personal loans.

  • Frontend: React + TypeScript + Vite + Tailwind CSS
  • Backend: Node.js + Express + MySQL + JWT (jose)
  • Orchestration: Docker Compose (backend + MySQL)

Contents

Features (highlevel)

  • Auth via JWT (login -> token cookie) using the backend route in backend/routes/api.js.
  • After login, the app loads items, loans, and user loans and keeps them in localStorage.
  • Choose a date range to fetch borrowable items, select items, and create a loan.
  • Manage personal loans list (and delete a loan).

Key frontend utilities:

UI flow (main screens):

Development

Configuration notes

API documentation

Refer to the dedicated API docs:

docs/backend_API_docs/README.md