Coder Social home page Coder Social logo

shamscorner / vue-3-stackter Goto Github PK

View Code? Open in Web Editor NEW
122.0 7.0 30.0 168 KB

A Vue3 starter project setup with Vite, Vue-meta, Router, Pinia, Eslint, Prettier, Tailwind CSS, and some custom preferences. Also, there is a TypeScript branch of this same setup.

License: MIT License

JavaScript 27.36% HTML 4.38% Vue 67.50% CSS 0.77%
vite vue-router typescript vue3 vue-router4 tailwindcss pinia

vue-3-stackter's Introduction

vue-3-stackter

Cover Image

A Vue3 starter project setup with these following components,

Check out Typescript version here

Check out Nuxt 3 starter template

Run this project:

yarn
yarn dev

Change site name

In App.vue change the following,

const siteName = 'Vite App' // add your site name here

Layouts

You can add layouts in your project if you want. You will find default.vue and 404.vue layout examples in this project. For more details, check out vite-plugin-vue-layouts. (Like Nuxt layouts system).

Pages

You can add pages to your project. You will find some example pages in the pages directory (index.vue, about/[name].vue, and [...all].vue). For more details, check out vite-plugin-pages. (Like Nuxt file system routing).

Meta info

You can add meta information in your pages. Here is an example,

<script setup>
import { useMeta } from 'vue-meta'

useMeta({
    title: 'Homepage',
})
...

</script>

Recommended IDE Setup

VSCode + Volar. Make sure to:

  • Disable Vetur for the current workspace
  • Disable built in TypeScript and JavaScript Language Features for the current workspace to enable take-over mode.

vue-3-stackter's People

Contributors

shamscorner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

vue-3-stackter's Issues

How to dynamically configure the content of meta tags

Hello, I am doing a similar requirement recently. Using vue3+setup+vue-meta, I found that there is no API to refer to. I can ask you how to dynamically modify the content of the meta tag in <script setup>. thanks

N00b Question .... re <main> tag

Hi Sham,

Thanks for a great Starter for Vue3, I'm going to be using it (hopefully) for my new site :D

I've made a few alterations to the code, to start my own design, but the content is locked to the very middle of the page because of the generated line

<main class="max-w-5xl p-5 mx-auto my-10 text-center">

Can you please advise how to modify it?

Thanks :D

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.