Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1.12 KB

README.md

File metadata and controls

46 lines (34 loc) · 1.12 KB

Vue 3 modular boilerplate

🗂 Vue CLI's Hello world boilerplate refactored to a modular approach (incl. vuex and router)

Structure

main.js

The bootstrap file, where the modules are invoked

Modules

router

Responsible for creating the router and registering the routes of each module

store

Responsible for creating the Vuex store and registring the stores of each module

core

Creates the Vue application and mounts it

home

An example module, as provided in the Vue CLI 4 example

about

An example module, as provided in the Vue CLI 4 example

shared

The only module that doesn't require registrating in main.js. Is used to share styling, util functions, components, etc. across modules

Example

To see what a potential structure of a simplistic reddit clone might be refer to STRUCTURE.md

Project setup

npm i
npm run serve