Giter Site home page Giter Site logo

truonghongthai97 / vue3-ts-vite-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kizaruuu/vue3-ts-vite-boilerplate

0.0 0.0 0.0 1.34 MB

Boilerplate and Starter for Vue 3x, Vite, Tailwind CSS, Vue Query and TypeScript

Home Page: https://vue3-ts-vite-boilerplate-one.vercel.app

Shell 0.16% JavaScript 4.72% TypeScript 24.37% CSS 0.06% Makefile 1.34% HTML 0.43% Vue 64.14% Dockerfile 0.77% SCSS 4.00%

vue3-ts-vite-boilerplate's Introduction

Boilerplate and Starter about Shopping Cart for Vue 3x, TypeScript, Vite, Vue Query, Docker and DummyJSON

๐Ÿš€ Boilerplate and Starter for Vue 3x, Vite, Tailwind CSS, Vue Query and TypeScript โšก๏ธ Made with developer experience first: Vue 3x, TypeScript, ESLint, Prettier, Husky, Lint-Staged, Jest, Testing Library, Commit Lint, VSCode, PostCSS, Tailwind CSS, DummyJSON.

  • ๐Ÿš€ Pages: Sign In, Categories Page, Product Page
  • โšก All configuration for api calling (using axios)
  • โšก All configuration for routing, included guards
  • ๐Ÿ’Ž Using docker for multiple env
  • ๐ŸŽ Tailwind Css combine with Scss
  • ๐Ÿ”ฅ Type checking TypeScript
  • ๐ŸŽ‰ Storybook for UI development
  • ๐Ÿ—‚ VSCode configuration: Debug, Settings, Tasks and extension for PostCSS, ESLint, Prettier, TypeScript, Jest
  • ๐ŸฆŠ Husky for Git Hooks
  • ๐Ÿš“ Friendly structure

This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.

Recommended IDE Setup

Type Support For .vue Imports in TS

Since TypeScript cannot handle type information for .vue imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in .vue imports (for example to get props validation when using manual h(...) calls), you can enable Volar's Take Over mode by following these steps:

  1. Run Extensions: Show Built-in Extensions from VS Code's command palette, look for TypeScript and JavaScript Language Features, then right click and select Disable (Workspace). By default, Take Over mode will enable itself if the default TypeScript extension is disabled.
  2. Reload the VS Code window by running Developer: Reload Window from the command palette.

You can learn more about Take Over mode here.

Build app with Docker compose

  • To build PRODUCTION

    • Run make build-production
    • To start app make start-production
    • To stop container make stop-production
  • To build QA - For testing env

    • Run make build-qa
    • To start app make start-qa
    • To stop container make stop-qa

vue3-ts-vite-boilerplate's People

Contributors

andy-smartosc 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.