How lovekaushik2001/lg-art-free-lance- works
Project type and purpose
• This is a Nuxt.js–based, component-driven front-end website that can be built either with server-side rendering (SSR) or as a statically generated site (SSG).
• Its purpose is to serve a gallery-style art portfolio, with dynamic routes under /gallery and static pages (About, Contact).
File structure
• Top-level config & metadata:
• nuxt.config.js – Nuxt configuration (plugins, modules, build rules)
• package.json / package-lock.json – dependencies & scripts
• assets/
• Uncompiled static data (db.json, trending.json) and styles (styles.css)
• components/
• Reusable Vue components (Navbar, Footer, GalleryCard)
• layouts/
• default.vue – the site’s wrapping template (header, footer, slot for pages)
• pages/
• File-based routing: index.vue, about.vue, contact.vue
• Nested dynamic routes under pages/gallery/[id]/… for per-art and per-product views
• static/
• Glob of images & video files served directly at /images/...
• store/
• Vuex store activation (even if empty or lightly populated)
README for insights
• Standard Nuxt commands: dev, build, start, generate
• No external backend or API; data presumably consumed from local JSON in assets or from build-time API calls.
a. Main components
1. Developer machine / CI pipeline
2. Build server (Node.js + Nuxt)
3. Deployment target:
• SSR server (Node) or
• Static host / CDN (for generated assets)
4. Client browser
5. Static asset store / CDN (images, videos)
b. Relationships & interactions
• Developer → push to Git → CI/CD
• CI/CD → npm install & npm run build (or generate) → deploy
• Browser requests a page → If SSR: Node/Nuxt renders HTML + CSS/JS → responds
If SSG: CDN returns pre-built HTML + CSS/JS
• Browser hydrates Vue—components pull any JSON data (embedded at build time or lazy-loaded)
• Static assets (images/videos) served from CDN or static server
c. Architectural patterns & design principles
• File-based routing (Nuxt automatically maps pages/ to routes)
• Component-based UI (Vue single-file components in components/)
• Layout template pattern (layouts/default.vue wraps all pages)
• Optional SSR or SSG for SEO and performance
• Centralized state with Vuex store (store/)
d. Key technologies & libraries
• Node.js & NPM (build toolchain)
• Nuxt.js framework (SSR/SSG + routing + config)
• Vue.js (components & reactivity)
• Vuex (application state)
• JSON data (assets/db.json, trending.json)
• Static asset serving (static/images, Nuxt static/)