How shaigerbi/israeli-store works
Project type and purpose
• This is a Nuxt.js-based Jamstack e-commerce storefront (“Israeli-Store”) that presents collectibles (coins, stamps, lapel pins, tokens).
• It uses Vue/Nuxt for UI, Vuex for state management, and static JSON files under static/db as its data source.
File structure
• Top-level config files: .babelrc, nuxt.config.js, package.json
• pages/: Nuxt routing—each folder (e.g., pages/coins/index.vue) defines a route that fetches JSON from static/db/*.json.
• components/: reusable Vue components (Products.vue, TheHeader.vue, etc.).
• layouts/: global wrappers (default.vue, error.vue).
• store/: Vuex modules for each category (coins, stamps, lapel_pins, tokens) with state.js, actions.js, etc.
• static/:
• /db/*.json: datastore files for each category
• /images/...: folder hierarchy of collectible images
• assets/: Sass variables, global styles
• plugins/, middleware/: custom logic insertion points (likely empty or trivial in this project)
README
• Confirms it’s a standard Nuxt project with build/dev/generate scripts.
• No backend other than static JSON; generates a fully static site or runs a Node server for SSR.
Components
a. Frontend / Nuxt.js application
• SSR & SSG engine (Node + Nuxt) at build time
• Vue components & layouts
• Vuex store modules
b. Data layer
• Static JSON files (static/db/*.json)
• Static images (static/images)
c. Build & Deployment
• Developer machine with Node.js & NPM
• Build step (npm run generate or npm run build) → output to /dist
• CDN or static-hosting (Netlify, Vercel, S3) serving generated files
d. Runtime flow
• Browser → HTTP GET → CDN / Server → serves prebuilt HTML/CSS/JS → Browser hydration
• Client-side JS → fetch JSON from /db/*.json → populate Vuex store → render components
Architectural patterns & design principles
• Jamstack: pre-rendered pages + client-side hydration
• Modular Vuex store per category (separation of concerns)
• Component-based UI (header/footer, product grid)
• Static asset optimization via Nuxt build pipeline
Technologies & frameworks
• Nuxt.js (Vue SSR/SSG), Vue.js, Vuex
• Webpack/Babel build chain
• Sass (assets/variables.scss)
• JSON files as headless “DB”
• Static hosting/CDN