How viandwi24/blockchain-simulation works
Project type and purpose
• This is a front-end-only, static-site application (no backend server) built with Nuxt.js/Vue.js.
• It simulates blockchain mechanics (blocks, transactions, proof-of-work, wallets) entirely in the browser for educational/demo purposes.
• All business logic lives in JavaScript modules under /lib; the UI is composed of Vue pages/components; it’s packaged and deployed as a static site (e.g., GitHub Pages in /docs).
File structure
• Top-level:
• nuxt.config.js, package.json, jsconfig.json, tailwind.config.js — project configuration
• assets/: global SCSS and images (source for styling and media)
• components/: reusable Vue components (Blocks, Transaction, Wallets, etc.)
• layouts/: Vue layouts (default.vue)
• pages/: Vue pages (index.vue) — entry point of the app
• store/: Vuex store (state management)
• plugins/: Nuxt plugins (auto-import or global components)
• api/composable/: composable functions (e.g., tour, lang) for UI logic
• lib/: core blockchain logic (block.js, transaction.js, blockchain.js, signature.js)
• docs/: generated static output (/_nuxt files, index.html) for hosting
• Notice the MVVM-like separation: Vue components/views ↔ Vuex store ↔ business logic modules
README for additional insights
• Describes the demo, shows how to use the /lib modules programmatically.
• No server API calls—everything executes in the browser.
• Tech stack: Node.js build, Nuxt/Vue.js front end, TailwindCSS/SCSS styling, Lottie animation.
Detailed capture of architectural elements
• How pages import components and composables
• Plugins (component auto-import) as part of the bootstrap layer
• Global styles (Tailwind/SCSS) feeding into component styling
• Major configuration files (nuxt.config.js, tailwind.config.js) in the build section