Code Monkey home page Code Monkey logo

phelsajc / vue3-enterprise-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from saymenghour/vue3-enterprise-boilerplate

0.0 0.0 0.0 585 KB

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

License: MIT License

JavaScript 5.45% TypeScript 42.67% CSS 4.20% HTML 0.54% Vue 47.14%

vue3-enterprise-boilerplate's Introduction

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



license repo-size last-commit stars forks release watchers

Vue 3 + TypeScript + Vite + Pinia + Vue i18n

Description

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

  1. Core Dependencies
  2. Getting Started

Core Dependencies

โ†‘ Back to top

Recommended IDE Setup

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

Type Support for .vue Imports in TS

TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue types.

If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:

  1. Disable the built-in TypeScript Extension
    1. Run Extensions: Show Built-in Extensions from VSCode's command palette
    2. Find TypeScript and JavaScript Language Features, right click and select Disable (Workspace)
  2. Reload the VSCode window by running Developer: Reload Window from the command palette.

Customize configuration

See Vite Configuration Reference.

Getting Started

Prerequisites

โ†‘ Back to top

  1. Node Js version v20.10.0. 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. Make sure you have a fresh version of Node.js and NPM installed.

  2. Clone this repository to your computer:

    https://github.com/saymenghour/vue3-enterprise-boilerplate.git
  3. Go to project directory:

    cd vue3-enterprise-boilerplate
  4. Open project in VScode:

    code .
  5. Run command below to ignore git case-sensitive filename

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

    using npm:

    npm install

    or using pnpm:

    pnpm install
  7. Create environment files:

    cp .env.example .env

    or for local development using

    cp .env .env.local
  8. Change its values appropriately

    BASE_API_URL="http://localhost:8080"
  9. To run the app on your local machine:

    npm run dev
  10. Build for production

    npm run build

Happy Coding... :)

License

MIT

vue3-enterprise-boilerplate's People

Contributors

saymenghour avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.