Are you about to start a major Vue project? To ensure that you start from a solid foundation, you can use a template (also called a boilerplate, skeleton, starter, or scaffolding) , instead of starting from npm init or vue init.
Many experienced developers have gathered their experience on building high-quality Vue applications in the form of open source templates. These templates include best configurations and project structures, best third-party tools, and other development best practices.
Unlike Vue CLI 3 which is optimized for flexibility, templates are customizable. Therefore, it's important to choose one that fits your development philosophy and has roughly the same features you need out of the box.
Some considerations for choosing a Vue template include:
Webpack
PWA
-
Full-stack with authentication
- ##Good documentation
- GraphQL
- Testing
1. Best for Webpack
If you need a reliable Webpack setup, then look no further than the Vue CLI The Webpack template included in 2 will do. With nearly 7000 stars on GitHub and developed and maintained by Vue team members, this template is your best choice for creating a highly optimized webpack-powered SPA.
This template takes advantage of many cutting-edge features of Webpack and its ecosystem, including hot reloading, CSS extraction, linting , and of course single-file component loading. It also includes individual configurations optimized for development, production and even testing.
As part of Vue CLI 2, this is one of the least opinionated templates we will provide and therefore does not contain many needed extras Features such as server-side rendering.
#If you find Webpack templates a bit overkill, you can try its little brother, Webpack Simple templates.
Link: https://github.com/vuejs-templates/webpack
Note: Vue CLI version 3, which is leaving beta, has abandoned the template architecture in favor of plugins, so this template is technically unpopular, but can still be used from Vue CLI 3 Used in legacy settings. Learn more in our article Vue CLI 3: A game changer for front-end development.
2. The most suitable PWA
You need advanced applications An advanced user experience? Vue Starter is a SPA template for server-rendered PWAs. It includes Vuex and Vue Router, configured to use server-side rendering (SSR) out of the box.
This project has put a lot of effort into ensuring that the projects you deploy have great UX from the start, such as support for internationalization in multiple languages and a Lighthouse score of 90 , thanks to SSR and service worker caching.
Additionally, use vue-meta to manage document header tags for SEO, while SSR ensures that your pages will be indexed by search engines that support JavaScript content.
Link: https://github.com/devCrossNet/vue-starterDemo: https://vue-starter.herokuapp.com If you are building a PWA, another good option is VuePack, and of course, the Vue CLI 2 PWA template
3. Best for Authentication
If you need user authentication, check out the Vue Express Mongo sample files. This project provides a boilerplate of a full-stack "MEVN" web application with out-of-the-box authentication, including user registration and social login for Google, Facebook, Twitter and GitHub.
This template follows security best practices, using OAuth 2, Helmet (adding secure HTTP headers), and Express Validator for input sanitization. It also provides support for multiple remote logging services.
For the database, MongoDB with Mongoose is provided. The repo also contains Docker configuration so you can easily spin up an instance.
Link: https://github.com/icebob/vue-express-mongo-boilerplate
Demo: http://vemapp.moleculer.services/
Tip: If you prefer using Laravel as the backend for your authenticated Vue application, try using the Laravel Vue Boilerplate which contains many similar features.
4. Best for documents
The reason many templates fail is due to lack of documentation. Vue Enterprise BoilerplateNot so. The project is created and maintained by Chris Fritz, who wrote most of the Vue documentation, so it is well organized and aligned with Vue best practices.
The great thing about this template's documentation is that it not only explains what is included, but often also what is not included and why. For example, Chris explained why there are no common templates such as TypeScript, Babel polyfill, Pug, etc.
Don't let the simple default page of this app fool you, it has a lot of features too. Some of my favorites include a mocking API for testing, and include generators that allow you to automatically add unit tests for setting up components, views, and layouts.
Vue Enterprise Boilerplate also supports Vue CLI 3, so projects can be easily extended with other Vue CLI 3 plugins.
Link: https://github.com/chrisvfritz/vue-enterprise-boilerplate
5. Most suitable for GraphQL
GraphQL is all the rage right now and many developers are looking to use it in their new Vue projects. While there aren't many Vue templates, be sure to check out Vuexpresso if you need GraphQL.
This project uses GraphQL, Apollo and GraphiQL UI, a browser for studying GraphQL Within the IDE. Additionally, you get a well-configured Webpack setup, Vuex and Vue Router. You also get Storybook, which allows interactive development, testing and sharing of UI components.
The only downside to Vuexpresso is that it's still fairly new, so be sure to take the time to thoroughly test any application you build with it.
Link: https://github.com/Ethaan/vuexpresso
Another boilerplate that supports GraphQL is Friendly Vue Starter , it also includes critical path CSS extracted via Critical.
Related recommendations: vue tutorial
The above is the detailed content of 5 Awesome Vue.js Project Templates. For more information, please follow other related articles on the PHP Chinese website!

JavaScript's application in the real world includes front-end and back-end development. 1) Display front-end applications by building a TODO list application, involving DOM operations and event processing. 2) Build RESTfulAPI through Node.js and Express to demonstrate back-end applications.

The main uses of JavaScript in web development include client interaction, form verification and asynchronous communication. 1) Dynamic content update and user interaction through DOM operations; 2) Client verification is carried out before the user submits data to improve the user experience; 3) Refreshless communication with the server is achieved through AJAX technology.

Understanding how JavaScript engine works internally is important to developers because it helps write more efficient code and understand performance bottlenecks and optimization strategies. 1) The engine's workflow includes three stages: parsing, compiling and execution; 2) During the execution process, the engine will perform dynamic optimization, such as inline cache and hidden classes; 3) Best practices include avoiding global variables, optimizing loops, using const and lets, and avoiding excessive use of closures.

Python is more suitable for beginners, with a smooth learning curve and concise syntax; JavaScript is suitable for front-end development, with a steep learning curve and flexible syntax. 1. Python syntax is intuitive and suitable for data science and back-end development. 2. JavaScript is flexible and widely used in front-end and server-side programming.

Python and JavaScript have their own advantages and disadvantages in terms of community, libraries and resources. 1) The Python community is friendly and suitable for beginners, but the front-end development resources are not as rich as JavaScript. 2) Python is powerful in data science and machine learning libraries, while JavaScript is better in front-end development libraries and frameworks. 3) Both have rich learning resources, but Python is suitable for starting with official documents, while JavaScript is better with MDNWebDocs. The choice should be based on project needs and personal interests.

The shift from C/C to JavaScript requires adapting to dynamic typing, garbage collection and asynchronous programming. 1) C/C is a statically typed language that requires manual memory management, while JavaScript is dynamically typed and garbage collection is automatically processed. 2) C/C needs to be compiled into machine code, while JavaScript is an interpreted language. 3) JavaScript introduces concepts such as closures, prototype chains and Promise, which enhances flexibility and asynchronous programming capabilities.

Different JavaScript engines have different effects when parsing and executing JavaScript code, because the implementation principles and optimization strategies of each engine differ. 1. Lexical analysis: convert source code into lexical unit. 2. Grammar analysis: Generate an abstract syntax tree. 3. Optimization and compilation: Generate machine code through the JIT compiler. 4. Execute: Run the machine code. V8 engine optimizes through instant compilation and hidden class, SpiderMonkey uses a type inference system, resulting in different performance performance on the same code.

JavaScript's applications in the real world include server-side programming, mobile application development and Internet of Things control: 1. Server-side programming is realized through Node.js, suitable for high concurrent request processing. 2. Mobile application development is carried out through ReactNative and supports cross-platform deployment. 3. Used for IoT device control through Johnny-Five library, suitable for hardware interaction.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Atom editor mac version download
The most popular open source editor

SublimeText3 Linux new version
SublimeText3 Linux latest version

SublimeText3 Mac version
God-level code editing software (SublimeText3)

SublimeText3 English version
Recommended: Win version, supports code prompts!

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.