How dylankainth/dylankainthcom works
Main Components
• Nuxt.js Application Core – This is the central part where the Nuxt configuration (nuxt.config.js) ties the entire project together.
• Pages – Represented by the “pages” directory, each .vue file (like index.vue, contact.vue, project/_id.vue, etc.) automatically maps to a route using Vue Router. These are the views that the user interacts with.
• Layouts – Located in the “layouts” directory (default.vue, blank.vue, error.vue); these define the overall page structure and can be shared among several pages.
• Components – Found in the “components” directory (for example, ProjectCard.vue and Navbar.vue). They provide reusable UI elements and are injected into pages and layouts.
• Store – The Vuex store (store/index.js) that manages the application state.
• Assets – Contains static design assets like CSS files, fonts, and images which are used by pages and components.
• Plugins – Includes JavaScript plugins (e.g., fontawesome.js, gtag.js) for adding extra functionality to the Vue app.
• Static Content – The “static” directory holds files that are served as-is (e.g., PDFs and videos).
Relationships and Interactions
• The User’s Browser sends HTTP requests to the Nuxt.js Application hosted on a server.
• Nuxt.js uses auto-generated routing (from “pages”) to determine which Vue component to display based on the URL.
• Each page is rendered with a specified layout (from “layouts”) and enhanced by injecting reusable Vue components (from “components”).
• The application state is centrally managed by the Vuex store (from “store”) which can be accessed across components.
• Assets (CSS, fonts, images) and static files (PDFs, video) are loaded into the views as needed.
Architectural Patterns and Design Principles
• The project leverages the modular architecture of Nuxt.js, splitting responsibilities among pages, layouts, components, and plugins.
• It follows the Component-Based UI design using Vue.js, promoting reusability and separation of concerns.
• The routing is automatically handled by the framework, making the “pages” structure central to navigation.
• Vuex store integration encapsulates state management, ensuring unidirectional data flow.
• Clear separation of concerns is maintained by organizing assets, static files, and configurations separately.
Relevant Technologies and Frameworks
• Nuxt.js: The application framework providing SSR (Server-Side Rendering) and auto routing.
• Vue.js: The underlying library for building the UI components.
• Vuex: For state management in the application.
• Standard tooling files such as package.json, .editorconfig, etc., provide configuration and build scripts.