Giter Site home page Giter Site logo

yuniel-acosta / vue-starter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shyam-chen/vue-starter

0.0 0.0 0.0 6.56 MB

:poodle: A boilerplate for SPA Client with HTML5, Vue, and Tailwind on Vite.

Home Page: https://vue-starter-6fa6.onrender.com

TypeScript 12.87% HTML 0.09% Vue 87.02% Dockerfile 0.02%

vue-starter's Introduction

Vue Starter

๐Ÿฉ A boilerplate for SPA Client with HTML5, Vue, and Tailwind on Vite.

๐ŸŒˆ View Demo: Live | Windows | macOS | Android | iOS

:octocat: Source Code: Web-side | Native-side | Server-side

Table of Contents

Getting Started

Prerequisites:

  • Node.js v20
  • PNPM v8

Get started with Vue Starter.

# install dependencies
$ pnpm install

# dev server (in one terminal)
$ pnpm dev

# mock server (in another terminal)
$ pnpm mock

Or use barebones scaffolding for your new Vue app

$ pnpm dlx degit Shyam-Chen/Starter-Templates/vue my-vue-app

Project Setup

Follow steps to execute this boilerplate.

Install dependencies

$ pnpm install

Compiles and hot-reloads for development

$ pnpm dev

Mock APIs during development

$ pnpm mock

Compiles and minifies for production

$ pnpm build

Locally preview the production build

$ pnpm preview

Lints and fixes files

Biome CLI

# format
$ pnpm biome format ./app ./ui ./mock ./e2e --write

# lint
$ pnpm biome lint ./app ./ui ./mock ./e2e

# format, lint & sort
$ pnpm biome check --apply ./app ./ui ./mock ./e2e

Check types

$ pnpm check

Runs unit tests

$ pnpm test

Runs end-to-end tests

$ pnpm e2e

Key Features

This seed repository provides the following features:

Configuration

Control the environment.

Default environments

Set your local environment variables.

// vite.config.ts
  define: envify({
    API_URL: process.env.API_URL || '',
  }),

Continuous integration environments

Add environment secrets to the GitHub Actions workflow.

DEPLOY_HOOK=xxx

Continuous delivery environments

Add environment variables to the Render build.

API_URL=xxx

Directory Structure

The structure follows the LIFT Guidelines.

.
โ”œโ”€โ”€ .github/workflows/ci.yml
โ”œโ”€โ”€ app
โ”‚   โ”œโ”€โ”€ public
โ”‚   โ”œโ”€โ”€ src
โ”‚   โ”‚   โ”œโ”€โ”€ assets
โ”‚   โ”‚   โ”œโ”€โ”€ components
โ”‚   โ”‚   โ”œโ”€โ”€ composables
โ”‚   โ”‚   โ”œโ”€โ”€ layouts
โ”‚   โ”‚   โ”œโ”€โ”€ locales
โ”‚   โ”‚   โ”œโ”€โ”€ middleware
โ”‚   โ”‚   โ”œโ”€โ”€ plugins
โ”‚   โ”‚   โ”œโ”€โ”€ routes
โ”‚   โ”‚   โ”œโ”€โ”€ utilities
โ”‚   โ”‚   โ”œโ”€โ”€ workers
โ”‚   โ”‚   โ”œโ”€โ”€ App.vue
โ”‚   โ”‚   โ”œโ”€โ”€ main.ts
โ”‚   โ”‚   โ””โ”€โ”€ shims.d.ts
โ”‚   โ”œโ”€โ”€ index.html
โ”‚   โ”œโ”€โ”€ package.json
โ”‚   โ”œโ”€โ”€ tsconfig.json
โ”‚   โ””โ”€โ”€ vite.config.ts
โ”œโ”€โ”€ e2e
โ”‚   โ”œโ”€โ”€ src
โ”‚   โ”œโ”€โ”€ package.json
โ”‚   โ”œโ”€โ”€ playwright.config.ts
โ”‚   โ””โ”€โ”€ tsconfig.json
โ”œโ”€โ”€ mock
โ”‚   โ”œโ”€โ”€ src
โ”‚   โ”œโ”€โ”€ package.json
โ”‚   โ”œโ”€โ”€ tsconfig.json
โ”‚   โ””โ”€โ”€ vite.config.ts
โ”œโ”€โ”€ ui
โ”‚   โ”œโ”€โ”€ src
โ”‚   โ”œโ”€โ”€ package.json
โ”‚   โ”œโ”€โ”€ tsconfig.json
โ”‚   โ””โ”€โ”€ vite.config.ts
โ”œโ”€โ”€ .editorconfig
โ”œโ”€โ”€ .eslintrc
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ .prettierrc
โ”œโ”€โ”€ biome.json
โ”œโ”€โ”€ Caddyfile
โ”œโ”€โ”€ compose.yaml
โ”œโ”€โ”€ Dockerfile
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ pnpm-lock.yaml
โ”œโ”€โ”€ pnpm-workspace.yaml
โ”œโ”€โ”€ README.md
โ””โ”€โ”€ render.yaml

vue-starter's People

Contributors

shyam-chen avatar yacosta738 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.