How leileisme/sclub-front works
Project type and purpose
• This is a Vue-based Single Page Application (SPA) called “SClub,” a student-club social community front end. It consumes a separate backend API (see README link to SClub-backend) and is deployed as a static site (GitHub Pages / free hosting).
File structure
• Top-level config files (.env.development, vite.config.js, ts/jsconfig, ESLint, Prettier) indicate a modern JavaScript toolchain.
• “src/” contains the core Vue app:
• src/main.js boots the app, registers plugins (Vuetify, Axios wrapper, mitt).
• src/router/ defines all SPA routes under front and admin paths.
• src/store/ (Vuex) holds global state modules (user, etc.).
• src/layouts/ distinguishes AdminLayout vs FrontLayout.
• src/views/ are route-level page components under admin, front, text.
• src/components/ are reusable UI bits (AddEvent, TicketView, PersonalView subtrees).
• src/composables/ wrap common logic (axios instance, logout, event bus, routeUser guard).
• src/enums/ define shared constants.
• src/plugins/ configure third-party libraries (Vuetify theme, mitt, etc.).
• src/assets/ and global.css for styling and static HTML samples.
• canvas/ and public/ hold demo pages and PWA manifest/ assets for splashscreens.
README
• Confirms front-to-back integration, login credentials, hosting caveats, and links to live site and backend repo.
• Illustrative screenshots hint at features: user registration/login, event browsing, ticket management, personal club management, admin dashboard.