All Projects โ†’ Shyam-Chen โ†’ Vue Starter

Shyam-Chen / Vue Starter

Licence: mit
๐Ÿฉ A boilerplate for HTML5, Vue, Vue Router, i18n, Tailwind, Windi, Netlify, and Vite.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Vue Starter

Lecture Frontend Dev Env
"[์ธํ”„๋Ÿฐ] ํ”„๋ก ํŠธ์—”๋“œ ๊ฐœ๋ฐœํ™˜๊ฒฝ์˜ ์ดํ•ด์™€ ์‹ค์Šต" ๊ฐ•์˜ ์‹ค์Šต ์ž๋ฃŒ์ž…๋‹ˆ๋‹ค.
Stars: โœญ 108 (-10%)
Mutual labels:  webpack, babel
Vue Spa Project
vue.js + vuex + vue-router + fetch + element-ui + es6 + webpack + mock ็บฏๅ‰็ซฏSPA้กน็›ฎๅผ€ๅ‘ๅฎž่ทต
Stars: โœญ 118 (-1.67%)
Mutual labels:  webpack, babel
React Starter
A basic template that consists of the essential elements that are required to start building a React (v16.3) application using Webpack (v4)
Stars: โœญ 108 (-10%)
Mutual labels:  webpack, babel
React Bootstrap Webpack Starter
ReactJS 16.4 + new React Context API +react Router 4 + webpack 4 + babel 7+ hot Reload + Bootstrap 4 + styled-components
Stars: โœญ 103 (-14.17%)
Mutual labels:  webpack, babel
React Workshop
โš’ ๐Ÿšง This is a workshop for learning how to build React Applications
Stars: โœญ 114 (-5%)
Mutual labels:  webpack, babel
Angular Es6
Angular ES6 utility library. Write directives, controllers and services as ES6 classes.
Stars: โœญ 103 (-14.17%)
Mutual labels:  webpack, babel
Webpack Seed
๐Ÿš€ A Multi-Page Application base on webpack and babel. webpackๆญๅปบๅŸบไบŽES6,ๆ”ฏๆŒๆจกๆฟ็š„ๅคš้กต้ข้กน็›ฎ
Stars: โœญ 113 (-5.83%)
Mutual labels:  webpack, babel
React From Scratch
Building a Modern React App from Scratch in 2021
Stars: โœญ 87 (-27.5%)
Mutual labels:  webpack, babel
Static Site Boilerplate
A better workflow for building modern static websites.
Stars: โœญ 1,633 (+1260.83%)
Mutual labels:  webpack, babel
Serverless Webpack
Serverless plugin to bundle your lambdas with Webpack
Stars: โœญ 1,595 (+1229.17%)
Mutual labels:  webpack, babel
Koa Mobx React Starter
A straightforward starter for Node javascript web projects. Using Koa, MobX and ReactJS (with universal / isomorphic server rendering)
Stars: โœญ 102 (-15%)
Mutual labels:  webpack, babel
React Redux Auth0 Kit
Minimal starter boilerplate project with CRA, React, Redux, React Router and Auth0 authentication
Stars: โœญ 115 (-4.17%)
Mutual labels:  webpack, babel
Frontie Webpack
Front-end Boilerplate | Gulp 4 + Webpack 4 + Babel + ITCSS Architecture + BEM Methodology + Twig.js
Stars: โœญ 102 (-15%)
Mutual labels:  webpack, babel
React Start Kit
A boilerplate of SPA, built with React.js, Webpack, ES6+, Redux, Router, Babel, Express, Ant Design...
Stars: โœญ 107 (-10.83%)
Mutual labels:  webpack, babel
Wordless
All the power of Pug, Sass, Coffeescript and WebPack in your WordPress theme. Stop writing themes like it's 1998.
Stars: โœญ 1,374 (+1045%)
Mutual labels:  webpack, babel
Universal React Redux
๐Ÿง A sensible universal starter kit for React + Redux
Stars: โœญ 112 (-6.67%)
Mutual labels:  webpack, babel
Webpack Core Usage
webpack2ๅฎŒๆ•ด็ณปๅˆ—่ฏพ็จ‹๏ผŒๆฌข่ฟŽ้˜…่ฏปใ€‚ๅŒๆ—ถๆฌข่ฟŽ็งปๆญฅๆˆ‘็š„reactๅ…จๅฎถๆกถๆ–‡็ซ ๅ…จ้›†: https://github.com/liangklfangl/react-article-bucket
Stars: โœญ 94 (-21.67%)
Mutual labels:  webpack, babel
Nodefony Starter
Nodefony Starter Node.js Framework
Stars: โœญ 95 (-20.83%)
Mutual labels:  webpack, babel
Babel Plugin Prismjs
A babel plugin to use PrismJS with standard bundlers.
Stars: โœญ 114 (-5%)
Mutual labels:  webpack, babel
Raw.macro
Read file contents at build time via babel-plugin-macros. webpack-less raw-loader
Stars: โœญ 115 (-4.17%)
Mutual labels:  webpack, babel

Vue Starter

๐Ÿฉ A boilerplate for HTML5, Vue, Vue Router, i18n, Tailwind, Windi, Netlify, and Vite.

Table of Contents

Getting Started

Follow steps to execute this boilerplate.

  1. Clone this boilerplate
$ git clone --depth 1 https://github.com/Shyam-Chen/Vue-Starter <PROJECT_NAME>
$ cd <PROJECT_NAME>
  1. Install dependencies
$ yarn install
  1. Compiles and hot-reloads for development
$ yarn serve
  1. Compiles and minifies for production
$ yarn build
  1. Lints and fixes files

File Scope: src/**/*.{vue,js,css}

$ yarn lint
  1. Runs unit tests

File Scope: src/**/*.spec.js

$ yarn unit
  1. Runs end-to-end tests

File Scope: src/**/*.e2e-spec.js

$ yarn build
$ yarn preview
$ yarn e2e
  1. Measure app performance

File Scope: src/**/*.e2e-meas.js

$ yarn build
$ yarn preview
$ yarn meas
  1. Mock requests

mock/requests is a fork of Koa-Starter that was made easy and quick way to run mock APIs locally.

$ yarn active
$ yarn mock

Key Features

This seed repository provides the following features:

Dockerization

Dockerize an application.

  1. Build and run the container in the background
$ docker-compose up -d default
  1. Run a command in a running container
$ docker-compose exec default <COMMAND>
  1. Remove the old container before creating the new one
$ docker-compose rm -fs
  1. Restart up the container in the background
$ docker-compose up -d --build default

Configuration

Control the environment.

Default environments

Set your local environment variables. (use this.<ENV_NAME> = process.env.<ENV_NAME> || <LOCAL_ENV>;)

// env.js

function Environment() {
  this.API_URL = process.env.API_URL || 'http://localhost:3000';
}

export default new Environment();

Continuous integration environments

Add environment variables to the CircleCI build.

CODECOV_TOKEN=xxx

Continuous deployment environments

Add environment variables to the Netlify build.

API_URL=http://api.example.com

File-based environments

If you want to set environment variables from a file.

.
โ”œโ”€โ”€ envs
โ”‚   โ”œโ”€โ”€ dev.js
โ”‚   โ”œโ”€โ”€ stage.js
โ”‚   โ””โ”€โ”€ prod.js
โ”œโ”€โ”€ mock
โ”œโ”€โ”€ public
โ””โ”€โ”€ src
// envs/<ENV_NAME>.js

function Environment() {
  this.API_URL = 'http://api.example.com';
}

module.exports = new Environments();
$ yarn add env-cmd -D
// package.json

  "scripts": {
    // "env-cmd -f ./envs/<ENV_NAME>.js" + "yarn build"
    "build:dev": "env-cmd -f ./envs/dev.js yarn build",
    "build:stage": "env-cmd -f ./envs/stage.js yarn build",
    "build:prod": "env-cmd -f ./envs/prod.js yarn build",
  },

SEO friendly

Netlify comes with built-in prerendering. Enabling it is as simple as checking a box:

Set up prerendering

VS Code settings

The most basic configuration.

{
  // ...
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "vue"
  ],
  "javascript.validate.enable": false,
  "css.validate": false,
  "vetur.validation.template": false,
  "vetur.validation.script": false,
  "vetur.validation.style": false,
  // ...
}

Directory Structure

The structure follows the LIFT Guidelines.

.
โ”œโ”€โ”€ src
โ”‚   โ”œโ”€โ”€ __tests__
โ”‚   โ”‚   โ””โ”€โ”€ ...
โ”‚   โ”œโ”€โ”€ _<THING>  -> app of private or protected things
โ”‚   โ”‚   โ””โ”€โ”€ ...
โ”‚   โ”œโ”€โ”€ assets  -> datas, fonts, images, medias, styles
โ”‚   โ”‚   โ””โ”€โ”€ ...
โ”‚   โ”œโ”€โ”€ core  -> core feature module
โ”‚   โ”‚   โ””โ”€โ”€ ...
โ”‚   โ”œโ”€โ”€ <FEATURE>  -> feature modules
โ”‚   โ”‚   โ”œโ”€โ”€ __tests__
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ <FEATURE>.e2e-spec.js
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ <FEATURE>.spec.js
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ actions.spec.js
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ getters.spec.js
โ”‚   โ”‚   โ”œโ”€โ”€ _<THING>  -> feature of private or protected things
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ ...
โ”‚   โ”‚   โ”œโ”€โ”€ <FEATURE>.vue  -> page component
โ”‚   โ”‚   โ”œโ”€โ”€ actions.js
โ”‚   โ”‚   โ”œโ”€โ”€ constants.js
โ”‚   โ”‚   โ””โ”€โ”€ getters.js
โ”‚   โ”œโ”€โ”€ <GROUP>  -> module group
โ”‚   โ”‚   โ””โ”€โ”€ <FEATURE>  -> feature modules
โ”‚   โ”‚       โ”œโ”€โ”€ __tests__
โ”‚   โ”‚       โ”‚   โ”œโ”€โ”€ <FEATURE>.e2e-spec.js
โ”‚   โ”‚       โ”‚   โ”œโ”€โ”€ <FEATURE>.spec.js
โ”‚   โ”‚       โ”‚   โ”œโ”€โ”€ actions.spec.js
โ”‚   โ”‚       โ”‚   โ””โ”€โ”€ getters.spec.js
โ”‚   โ”‚       โ”œโ”€โ”€ _<THING>  -> feature of private or protected things
โ”‚   โ”‚       โ”‚   โ””โ”€โ”€ ...
โ”‚   โ”‚       โ”œโ”€โ”€ <FEATURE>.vue  -> page component
โ”‚   โ”‚       โ”œโ”€โ”€ actions.js
โ”‚   โ”‚       โ”œโ”€โ”€ constants.js
โ”‚   โ”‚       โ””โ”€โ”€ getters.js
โ”‚   โ”œโ”€โ”€ shared  -> shared feature module
โ”‚   โ”‚   โ””โ”€โ”€ ...
โ”‚   โ”œโ”€โ”€ App.vue
โ”‚   โ”œโ”€โ”€ Home.vue
โ”‚   โ””โ”€โ”€ main.js  -> entrypoint
โ”œโ”€โ”€ .editorconfig
โ”œโ”€โ”€ .eslintrc
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ .prettierrc
โ”œโ”€โ”€ .stylelintrc
โ”œโ”€โ”€ circle.yml
โ”œโ”€โ”€ docker-compose.yml
โ”œโ”€โ”€ Dockerfile
โ”œโ”€โ”€ env.js
โ”œโ”€โ”€ index.html
โ”œโ”€โ”€ jest.config.js
โ”œโ”€โ”€ LICENSE
โ”œโ”€โ”€ netlify.toml
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ vite.config.js
โ””โ”€โ”€ yarn.lock

Microservices

Techniques, strategies and recipes for building a modern web app with multiple teams that can ship features independently.

See Client-side Micro-Fullstack for instructions on how to create microservices from source.

Frequently Asked Questions

  • HTML img src tag not displaying image
<template>
  <div>
    <img src="~~/assets/images/foo.png" alt="foo" />
  </div>
</template>
  • CSS background image not displaying
<template>
  <div>
    <div class="foo"></div>
  </div>
</template>

<style scoped>
.foo {
  width: 6rem;
  height: 6rem;
  background: url('~/assets/images/foo.png') no-repeat;
}
</style>
  • Vue.js dynamic images not displaying
<template>
  <div>
    <img :src="require('~/assets/images/foo.png')" alt="foo" />
  </div>
</template>
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].