Skip to content

πŸ”₯ The boilerplate of Vue 3, Typescript, Vite, Vue Router, Pinia, Axios, Tailwind CSS, and Vue i18n for buildings efficient, faster, maintainable for enterprise applications πŸš€πŸš€

License

Notifications You must be signed in to change notification settings

Erkinov97/vue3-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Vue Logo Typescript Logo Vite 3 Logo Pinia Logo Vue i18n Logo



license repo-size last-commit release

✨ Vue Boilerplate ✨

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.

πŸ“š Table of Contents

❓ What's Included?

  • 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.

πŸ–‡οΈ Core Dependencies

↑ Back to top

Library Version Description
Vue Vue A progressive JavaScript framework for building user interfaces.
Vite Vite Next-generation frontend build tooling for fast and efficient development.
Typescript Typescript A superset of JavaScript that enhances the development experience with static typing.
Vue Router Vue Router Official router for Vue.js, used for managing application routes.
Vue i18n Vue i18n Internationalization plugin for Vue.js applications, enabling multi-language support.
Pinia Pinia An intuitive store for Vue.js applications, providing centralized state management.
Axios Axios Promise-based HTTP client for making API requests.
Tailwind CSS Tailwind CSS A utility-first CSS framework for rapid UI development.
Vite-Plugin-Vue-Devtools  Vite-Plugin-Vue-Devtools The next iteration of Vue DevTools.

πŸ—‚οΈ Project Structure

β”œβ”€β”€ 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
└── ...
.

πŸš€ Getting Started

Prerequisites

↑ Back to top

  1. Node Js version ^v20.

  2. 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

Installation

↑ Back to top

  1. Clone this repository to your computer:

    https://github.com/Erkinov97/vue3-boilerplate.git
    cd vue3-boilerplate
    code .
  2. From the project's root directory, install the required packages (dependencies):

    pnpm install

    or

    pnpm i
  3. Create environment files:

    cp .env.example .env
  4. Set up the environment variables.

  5. To run the app on your local machine:

    pnpm dev
  6. Build for production

    pnpm build

πŸ’‘ Scripts

↑ Back to top

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.

πŸ“ License

This project is licensed under the MIT License.

About

πŸ”₯ The boilerplate of Vue 3, Typescript, Vite, Vue Router, Pinia, Axios, Tailwind CSS, and Vue i18n for buildings efficient, faster, maintainable for enterprise applications πŸš€πŸš€

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published