How emac56/taskora-web works
Purpose and Runtime
This is a Vite-powered Vue single-page application for publishing tutorials publicly and administering tutorial content behind an authenticated admin area. The client is the primary runtime; backend behavior is consumed through HTTP APIs rather than implemented in this repository. Entry points are index.html, src/main.js, and root component src/App.vue.
Application Composition
src/App.vue hosts router-driven application rendering. Global styling and UI framework configuration originate in src/style.css, tailwind.config.js, and postcss.config.js. The application is bundled and served through Vite (vite.config.js) and uses environment configuration indicated by .env.example.
Routing and Access Boundaries
src/router/index.js defines navigation between public tutorial pages and administrative pages. Public routes lead to tutorial discovery/detail views in src/views/public/TutorialsListView.vue and src/views/public/TutorialDetailView.vue. Admin routes lead to login, dashboard, tutorial list, and editing flows under src/views/admin/, with authentication state acting as the key boundary.
Layout Layers
Public and administrative page shells are separated by src/layouts/PublicLayout.vue and src/layouts/AdminLayout.vue. This keeps public reading/navigation concerns distinct from the admin workspace, where authenticated controls, dashboard content, and authoring workflows are rendered.
Authentication State and API Transport
Authentication is centralized in src/stores/auth.js, with login UI in src/features/auth/components/LoginForm.vue and API calls in src/api/auth.api.js. src/api/http.js is the shared HTTP transport boundary for backend requests, likely applying common base URL, headers, and token handling. API failure and session behavior should remain contained between this transport, auth API, and auth store rather than embedded in views.
Tutorial Content Domain
Tutorial and step resources are represented through dedicated API modules: src/api/tutorials.api.js and src/api/tutorialSteps.api.js. Public pages consume these resources to list tutorials and show ordered step content. Admin views—especially src/views/admin/AdminTutorialFormView.vue—create or edit tutorial metadata and associated steps, making tutorial/step persistence the primary domain flow.
Presentation Components and Authoring Flow
Reusable tutorial UI is partitioned by role: src/features/tutorials/components/TutorialCard.vue for discovery, src/features/tutorials/components/StepDisplayItem.vue for public reading, and src/features/tutorials/components/StepEditorRow.vue for admin step editing. The admin flow progresses from src/views/admin/AdminTutorialsListView.vue to the form view, while src/views/admin/AdminDashboardView.vue summarizes management activity through components such as src/features/dashboard/components/StatCard.vue.
Main entry points: index.js Router and access rules · AdminTutorialFormView.vue Tutorial form · http.js HTTP transport · PublicLayout.vue Public layout
Components 21
Application Shell
- Vite build runtime · Bundles and serves the SPA.
vite.config.js - Client entry
src/main.js - App root · Hosts router-driven rendering.
src/App.vue - Router and access rules · Separates public and authenticated admin routes.
src/router/index.js
Public Experience
- Public layout
src/layouts/PublicLayout.vue - Tutorial discovery
src/views/public/TutorialsListView.vue - Tutorial reading · Shows ordered tutorial steps.
src/views/public/TutorialDetailView.vue - Tutorial card
src/features/tutorials/components/TutorialCard.vue - Step display item
src/features/tutorials/components/StepDisplayItem.vue
Admin Workspace
Authenticated tutorial management.
- Admin layout
src/layouts/AdminLayout.vue - Login form
src/features/auth/components/LoginForm.vue - Admin dashboard
src/views/admin/AdminDashboardView.vue - Admin tutorial list · Starts tutorial authoring and editing.
src/views/admin/AdminTutorialsListView.vue - Tutorial form · Edits tutorial metadata and associated steps.
src/views/admin/AdminTutorialFormView.vue - Step editor row
src/features/tutorials/components/StepEditorRow.vue
Client Data Layer
Shared transport and resource APIs.
- Authentication state · Owns session state used by admin access.
src/stores/auth.js - HTTP transport · Centralizes backend request concerns.
src/api/http.js - Auth API
src/api/auth.api.js - Tutorials API
src/api/tutorials.api.js - Tutorial steps API
src/api/tutorialSteps.api.js
Other components
- Backend HTTP APIs · Provides authentication and tutorial persistence.
Connections 24
- Vite build runtime → Client entry: serves and bundles
- Client entry → App root: mounts
- App root → Router and access rules: renders routes
- Router and access rules → Public layout: public routes
- Router and access rules → Admin layout: admin routes
- Router and access rules → Authentication state: checks access
- Public layout → Tutorial discovery: hosts
- Public layout → Tutorial reading: hosts
- Tutorial discovery → Tutorial card: renders
- Tutorial reading → Step display item: renders steps
- Admin layout → Admin dashboard: hosts
- Admin layout → Admin tutorial list: hosts
- Admin tutorial list → Tutorial form: create or edit
- Tutorial form → Step editor row: edits steps
- Login form → Authentication state: signs in
- Authentication state → Auth API: uses
- Auth API → HTTP transport: requests through
- Tutorial discovery → Tutorials API: loads tutorials
- Tutorial reading → Tutorial steps API: loads steps
- Tutorial form → Tutorials API: persists metadata
- Tutorial form → Tutorial steps API: persists steps
- Tutorials API → HTTP transport: requests through
- Tutorial steps API → HTTP transport: requests through
- HTTP transport → Backend HTTP APIs: HTTP requests