How h-e-l-e-n/taiwan_bank works
Project type and purpose
• This is a single‐page application (SPA) implemented in Vue 3 and built with Vite.
• Purpose: allow users to look up Taiwan bank and credit‐coop codes, addresses, and phone numbers via text input or dropdown, then view, copy the code, or share a result page link.
File structure
• Top level: configuration files for Git, Prettier, ESLint, Vite, VSCode, and Vercel (.vscode, vercel.json, vite.config.js, eslint.config.js, etc.).
• index.html at root boots the SPA.
• src/ contains application code:
• main.js: app entrypoint mounts Vue.
• App.vue: root component.
• router/index.js: Vue Router setup.
• views/ + views/components/ResultView.vue: page and subcomponent implementations.
• assets/: images (screenshots).
• public/data/banks_detail.json: static dataset served at runtime.
• package.json/package-lock.json: dependencies (Vue3, Bootstrap, etc.).
Pulling extra insights from the README
• Features: text & dropdown search, code copying, URL‐share.
• Tech stack: Vue 3, Vite, Bootstrap, RWD, ESLint.
• No backend service—data is purely static JSON.
a. Main components
• User’s Browser (client)
• Static File Server (Vite dev server or production host—Vercel)
• Vue 3 SPA (App.vue + router + components)
• Static Data Store (banks_detail.json in public/data/)
• External libraries (Bootstrap CSS, ESLint config—in dev stage)
b. Relationships & interactions
• Browser requests index.html + JavaScript/CSS bundles from the Static File Server.
• SPA initializes via main.js → mounts App.vue → sets up Vue Router.
• On search or dropdown selection, the SPA fetches banks_detail.json over HTTP GET from the same server.
• Filter logic runs in the client, renders ResultView.vue.
• Copy‐to‐clipboard and URL‐sharing are direct client‐side operations.
c. Architectural patterns / design principles
• SPA pattern with client‐side routing (Vue Router)
• Asset & data separation: public static files vs. compiled application code
• No centralized backend—“JAMstack”‐style architecture (JavaScript, APIs, Markup)
d. Key technologies & frameworks
• Vue 3 + Composition API
• Vite (dev server + build tool)
• Bootstrap (responsive styling)
• JSON data store in public