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.
.
āāā 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
ā ā āāā index.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
āāā ...
Node Js version v20+
. The current Long Term Support (LTS) release is an ideal starting point.
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/saymenghour/vue3-enterprise-boilerplate.git
cd vue3-enterprise-boilerplate
code .
Run command below to ignore git case-sensitive filename
git config --global core.ignorecase false
From the project's root directory, install the required packages (dependencies):
pnpm install
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
This will gracefully stop the container without affecting its data or configuration.
Happy Coding :)
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.