Skip to content

The boilerplate of Vue v3, Typescript, Vite, Vue Router, Pinia, Axios, Tailwind CSS, Vue Query, VeeValidate, Zod, and Vue i18n for buildings efficient, faster, maintainable, and scalable for enterprise applications.

License

Notifications You must be signed in to change notification settings

saymenghour/vue3-enterprise-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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, Vue Query, VeeValidate, Zod, 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.
  • 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.
  • Theme (Light/Dark/System): Offers a choice of light, dark, or system-based theme for a personalized user experience.
  • 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.
Vue Query @tanstack/vue-query A data-fetching and state management library for Vue.js, with powerful data-fetching capabilities.
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 highly customizable CSS framework for rapid web development.
VeeValidate VeeValidate Painless Vue form.
Zod Zod TypeScript-first schema validation with static type inference.

🗂️ Project Structure

.
├── public/
│   ├── assets
│   │   ├── fonts
|   |   └── images
│   └── favicon.ico
├── src
│   ├── App.vue
│   ├── assets
│   │   ├── images
│   │   │   └── logo.svg
│   │   └── styles
│   │       └── main.css
│   ├── components
│   │   ├── index.ts
│   │   ├── shared
│   │   ├── theme-switcher
│   │   ├── ui
│   │   │   ├── Avatar.vue
│   │   │   ├── Button.vue
│   │   │   ├── Card.vue
│   │   │   └── ...
│   │   └── vee-validate
│   │       ├── CheckboxField.vue
│   │       ├── CheckboxGroupField.vue
│   │   │   └── ...
│   ├── composables
│   ├── constants
│   ├── http
│   │   ├── axios
│   │   │   ├── index.ts
│   │   │   └── interceptor.ts
│   │   └── index.ts
│   ├── layouts
│   ├── locales
│   │   ├── en.ts
│   │   ├── index.ts
│   │   └── km.ts
│   ├── main.ts
│   ├── modules
│   │   ├── auth
│   │   │   ├── LoginView.vue
│   │   │   ├── authenticationService.ts
│   │   │   ├── authenticationType.ts
│   │   │   ├── loginSchema.ts
│   │   │   ├── routes.ts
│   │   │   └── useAuth.ts
│   │   ├── current-user
│   │   │   ├── currentUserApi.ts
│   │   │   ├── currentUserStore.ts
│   │   │   └── currentUserType.ts
│   │   ├── dashboard
│   │   │   ├── DashboardView.vue
│   │   │   ├── OverviewView.vue
│   │   │   └── RecentSales.vue
│   │   ├── exception
│   │   │   ├── NotFound.vue
│   │   │   └── UnauthorizeView.vue
│   ├── router
│   │   ├── guards.ts
│   │   ├── index.ts
│   │   ├── privateRoutes.ts
│   │   └── publicRoutes.ts
│   ├── services
│   │   └── localStorage.ts
│   ├── types
│   │   ├── index.ts
│   │   └── menu.ts
│   └── utils
│       ├── common
│       ├── crypto
│       └── env.ts
├── types
│   ├── env.d.ts
│   ├── global.d.ts
│   └── router.d.ts
├── package.json
├── pnpm-lock.yaml
├── postcss.config.js
├── tailwind.config.js
├── tsconfig.app.json
├── tsconfig.json
├── tsconfig.node.json
├── vite.config.ts
└── ...

🚀 Getting Started

Prerequisites

↑ Back to top

  1. Node Js version v20+. The current Long Term Support (LTS) release is an ideal starting point.

  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/saymenghour/vue3-enterprise-boilerplate.git
    cd vue3-enterprise-boilerplate
    code .
  2. Run command below to ignore git case-sensitive filename

    git config --global core.ignorecase false
  3. From the project's root directory, install the required packages (dependencies):

    pnpm install
  4. Create environment files:

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

  6. To run the app on your local machine:

    pnpm dev
  7. Build for production

    pnpm build

This will gracefully stop the container without affecting its data or configuration.

Happy Coding :)

💡 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 v3, Typescript, Vite, Vue Router, Pinia, Axios, Tailwind CSS, Vue Query, VeeValidate, Zod, and Vue i18n for buildings efficient, faster, maintainable, and scalable for enterprise applications.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published