The boilerplate of Vue v3, Typescript, Vite, Vue Router, Pinia, Axios, Tailwind CSS, and Vue i18n for buildings efficient, faster, maintainable, and scalable for enterprise applications.
- β What's Included?
- ποΈ Core Dependencies
- ποΈ Project Structure
- π Getting Started
- π‘ Scripts
- π License
- Authentication: Provides a secure login system for users.
- Authorization: Implements role-based access control to manage user permissions.
- Multiple Language: Supports localization and enables users to switch between different languages.
- Theme (Light/Dark/System): Offers a choice of light, dark, or system-based theme for a personalized user experience.
- Form Validation: Includes form validation functionality to ensure data integrity and improve user experience.
- Error Handling: Handles and displays error messages in a user-friendly manner.
- API Integration: Integrates with external APIs to fetch data and provide dynamic content.
- Responsive Design: Ensures the application is optimized for various screen sizes and devices.
- Testing: Includes a test suite with unit tests and integration tests for reliable code quality.
- Documentation: Provides comprehensive documentation to guide developers and users.
βββ public/
β βββ assets
β β βββ fonts
| | βββ images
β βββ favicon.ico
βββ src
β βββ assets
β β βββ images
β β βββ styles
β βββ components
β β βββ ui
β β βββ ...
β βββ constants
β βββ http
β β βββ axios
β β βββ index.ts
β βββ layouts
β β βββ MainLayout.ts
β β βββ ...
β βββ locales
β β βββ en
β β βββ ru
β β βββ uz
β βββ router
β β βββ index.ts
β β βββ routes.ts
β β βββ ...
β βββ services
β βββ types
β βββ utils
β βββ App.vue
β βββ main.ts
βββ package.json
βββ ...
.
-
Node Js version
^v20
. -
Visual Studio Code. Visual Studio Code is the free and open-sourced code editor. It is one of the top most editor used especially for JavaScript application development.
Recommended Plugin for VSCode
-
Clone this repository to your computer:
https://github.com/Erkinov97/vue3-boilerplate.git cd vue3-boilerplate code .
-
From the project's root directory, install the required packages (dependencies):
pnpm install
or
pnpm i
-
Create environment files:
cp .env.example .env
-
Set up the environment variables.
-
To run the app on your local machine:
pnpm dev
-
Build for production
pnpm build
The following scripts are available:
Script | Action |
---|---|
pnpm install |
Installs the project dependencies. |
pnpm dev |
Runs the application in development mode. |
pnpm build |
Builds the production-ready optimized bundle. |
pnpm preview |
Starts the preview server using Vite. |
pnpm lint |
Runs ESLint to lint the project files and fix any issues. |
pnpm format |
Formats the source code using Prettier. |
This project is licensed under the MIT License.