This is a starting place for creating a Vue3 App with all the freshest hits like Vite, Pinia, Vuetify 3 beta, TS and user auth
# Project setup
npm i
# build and hot-load
npm run dev
# compile and Minify for Production
npm run build
# lint
npm run lint
- Typescript and Vue3
- more in depth TS info here
- how to transition from vue-class-components to the CompositionAPI
- Vuex is being deprecated so let's use Pinia! 🍍
- More about Pinia
- Vite Configuration Reference
- Static deployment using Vite
- Render Deployment
- you can connect your github repo to Render and it will automatically deploy when new commits are pushed. neat!
- important notes about deploying Vue apps using redirects for proper router behavior
- see this app in action at https://vue3-boilerplate.onrender.com/
- Vuetify 3 beta
- Material Design Icons
- lint
- For Vue3 it is recommended to disable Vetur and use VSCode extensions Volar and TypeScript Vue Plugin (Volar)
- to deploy as a subdir to your website, maybe try
"build": "vite build --base=/vue3/"
in package.json
- provide login and signup
- implement more robust user management
- lazy-loading in router/index.ts
- get knowing about CompositionAPI and OptionsAPI -- check that you're using best practices
- scss -- maybe? css may be preferred
- absolute component paths
- add Vuetify
- change auth to something more flexible/remove redirect
- purge the rest of okta
- make the FeedBar mobile-friendly
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:
- Disable the built-in TypeScript Extension
- Run
Extensions: Show Built-in Extensions
from VSCode's command palette - Find
TypeScript and JavaScript Language Features
, right click and selectDisable (Workspace)
- Run
- Reload the VSCode window by running
Developer: Reload Window
from the command palette.