How tikusdugem/efishery-fe-task works
Main Components
• Frontend UI Layer:
– Main application file (src/App.vue)
– Layouts (src/layouts/MainLayout.vue)
– Pages (src/pages, such as LandingPage.vue and Error404.vue)
• Routing & Navigation:
– Router configuration (src/router/index.js and routes.js) that directs user navigation across pages
• State Management:
– Vuex store (src/store) including dedicated modules (e.g., src/store/landing-page with actions, getters, mutations, and state)
• Bootstrapping & Initialization:
– Boot files (src/boot directory) for initializing third-party libraries like Axios (axios.js) and i18n (i18n.js)
• Internationalization:
– i18n configuration (src/i18n, with language files under src/i18n/en-us)
• Assets & Styling:
– Static assets (src/assets)
– Stylesheets (src/css, including Quasar-specific theming in quasar.variables.scss)
• Service Worker and PWA Enhancements:
– PWA specific files in src-pwa (custom-service-worker.js, register-service-worker.js, etc.)
• Public/Static Files & Configuration:
– Various configuration files (quasar.conf.js, babel.config.js, etc.) for building and linting
Relationships & Data Flow
• The boot files perform the initial configuration and integration: when the application starts, they register internationalization settings and activate Axios for API calls (using environment variables defined in .dev.env/.prod.env).
• The main App.vue serves as the root container. From here, the router directs the user to different pages/layouts.
• Vuex (state management) is globally scoped and interacts with various pages to manage application state.
• The service worker (and related PWA files) manages caching and offline capabilities, communicating with the main app to keep the PWA functionalities intact.
• The Quasar CLI (as seen in the project’s build and configuration files) orchestrates the build and deployment processes, ensuring that environment variables are injected properly.
Recognize Key Architectural Patterns
• Component-Based UI Development (Vue.js with .vue files)
• MVC/MVVM-like patterns within Vue – the “view” (layouts/pages), “model” (Vuex store) and “controller” (router/boot logic)
• Separation of concerns through boot modules, dedicated configuration for PWA service worker, and distinct directories for assets, styles, and i18n resources.