How wenjiaqi123/studyvue works
Project Type and Purpose
• This is a Vue.js single‑page application (SPA) using a webpack‑based build pipeline.
• It serves as the front‑end for the “studyvue” platform, with pages/components for Home, About Us, Course, Mall, News, Software, User Center, Login, etc.
File Structure
• Root files:
– .babelrc, .editorconfig, .gitignore, package.json, index.html
• build/ : webpack scripts & configs (base, dev, prod), vue‑loader.conf, version checks, utilities
• config/ : environment files (dev.env.js, test.env.js, prod.env.js) and main index.js
• src/ :
– main.js (entry point)
– App.vue (root component)
– router/index.js (Vue Router setup)
– components/… (feature‑based folders, e.g. home/ with Chart.vue & RotationChart.vue, aboutUs/AboutUs.vue, course/Course.vue, mall/*, news/News.vue, software/Software.vue, userCenter/UserCenter.vue, login/Login.vue & SlideVerification.vue, header/Header.vue, footer/Footer.vue)
– assets/… (static images, header)
– tools/… (bus.js for event bus, cookie.js)
• static/ : truly static files
• build scripts referenced in package.json (npm run dev, build, test, etc.)
Pull Insights from the README
• Standard Vue‑CLI webpack template.
• Uses npm scripts to install, serve (webpack‑dev‑server), build (webpack), and test.
• Leverages Babel, PostCSS, vue‑loader.