• Stars
    star
    194
  • Rank 200,219 (Top 4 %)
  • Language Vue
  • Created over 7 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🐩 A boilerplate for web applications with Vue and Tailwind using TypeScript on Vite.

Vue Starter

🐩 A boilerplate for HTML5, Vue, TypeScript, Vite, Vitest, and Render.

🌈 Live Demo - The server application is here.

Table of Contents

Getting Started

Get started with Vue Starter.

# dev server
$ pnpm install
$ pnpm dev

# mock server
$ cd mock/requests && pnpm install && cd ../..
$ pnpm mock

Project Setup

Follow steps to execute this boilerplate.

Install dependencies

$ pnpm install

Compiles and hot-reloads for development

$ pnpm dev

Compiles and minifies for production

$ pnpm build

Locally preview the production build

# Before running the `preview` command, make sure to run the following commands.
$ pnpm build

$ pnpm preview

Lints and fixes files

Files: src/**/*.{ts,vue}

$ pnpm lint

Runs unit tests

Files: src/**/*.spec.ts

$ pnpm unit

Runs end-to-end tests

Files: e2e/**/*.spec.ts

# Before running the `e2e` command, make sure to run the following commands.
$ pnpm build
$ pnpm preview

# If it's not installed, run it.
$ cd e2e && pnpm install && cd ..

$ pnpm e2e

Performance metrics

Files: benchmark/**/*.spec.ts

# Before running the `bench` command, make sure to run the following commands.
$ pnpm build
$ pnpm preview

# If it's not installed, run it.
$ cd benchmark && pnpm install && cd ..

$ pnpm bench

Mock requests/responses

# If it's not installed, run it.
$ cd mock/requests && pnpm install && cd ../..

$ pnpm mock

mock/responses can be applied to unit testing, end-to-end testing, and performance metrics.

Documentation

Files: docs/**/*.md

# If it's not installed, run it.
$ cd docs && pnpm install && cd ..

$ pnpm doc

Key Features

This seed repository provides the following features:

Configuration

Control the environment.

Default environments

Set your local environment variables.

// env.ts
export default {
  API_URL: process.env.API_URL || '',
};

Continuous integration environments

Add environment variables to the CircleCI build.

# production
DEPLOY_HOOK=xxx

# development
DEV_DEPLOY_HOOK=xxx

# staging
STAGE_DEPLOY_HOOK=xxx

Continuous delivery environments

Add environment variables to the Render build.

API_URL=xxx

Directory Structure

The structure follows the LIFT Guidelines.

.
├── .circleci
├── benchmark -> performance testing
├── docs -> site documentation
├── e2e -> e2e testing (Caddy Server serve static files and proxy mock api)
├── mock
│   ├── requests -> mock api
│   └── responses -> mock data for mock api, unit testing, and e2e testing
├── public
├── src
│   ├── assets -> data, fonts, images, medias, styles
│   ├── components -> shared module
│   ├── composables -> shared module
│   ├── layouts -> core module
│   ├── locales -> core module
│   ├── middleware -> core module
│   ├── plugins -> root module
│   ├── routes -> feature modules
│   ├── utilities -> shared module
│   ├── App.vue
│   ├── Error.vue
│   ├── main.ts
│   └── shims.d.ts
├── .editorconfig
├── .eslintrc
├── .gitignore
├── .prettierrc
├── Caddyfile
├── docker-compose.yml
├── Dockerfile
├── env.ts
├── index.html -> entrypoint
├── LICENSE
├── package.json
├── pnpm-lock.yaml
├── README.md
├── render.yaml
├── tsconfig.json
└── vite.config.ts

Microservices

A micro-frontend architecture lays out the approach for the structural elements of a micro-frontend framework. It also defines the relationships among them, governing how UI fragments are assembled and communicate in order to achieve the optimal developer and user experience.

See Micro-Fullstack's Micro Frontends for instructions on how to create microservices from source code.

example.com
├── feature1.example.com
└── feature2.example.com

More Repositories

1

Express-Starter

🚚 A boilerplate for API Server with Node.js, Express, and Mongoose on Nodemon.
JavaScript
532
star
2

Svelte-Starter

🍦 A boilerplate for SSR Client with HTML5, Svelte, and Tailwind on Vite.
Svelte
114
star
3

Fastify-Starter

🐆 A boilerplate for server applications with Fastify and Mongo using TypeScript on Vite.
TypeScript
71
star
4

Angular-Starter

📐 A boilerplate for SPA Client with HTML5, Angular, and Material on Webpack.
TypeScript
69
star
5

React-Starter

🐏 A boilerplate for SPA Client with HTML5, React, and MUI on Webpack.
JavaScript
37
star
6

Micro-Fullstack

🍁 ECMAScript Microservices Development: Build, test, deploy, and scale microservices in ECMAScript.
JavaScript
28
star
7

Little-Books

⚡ Thoughts on Vite.
TypeScript
20
star
8

TypeScript-Solutions

🐳 LeetCode of algorithms with JavaScript solutions written in TypeScript.
TypeScript
9
star
9

Playwright-Starter

⛳ A boilerplate for Test Automation with Playwright, Lighthouse, and Autocannon.
TypeScript
6
star
10

Koa-Starter

🥚 A boilerplate for API Server with Node.js, Koa, and Mongoose on Webpack.
JavaScript
5
star
11

Component-Starter

🎠 A boilerplate for Web Components to help build microservices development.
TypeScript
3
star
12

MJML-Starter

📧 A boilerplate for building responsive HTML emails with MJML, PostHTML, and YAML in Nunjucks on Gulp.
JavaScript
3
star
13

Tauri-Starter

🔗 A boilerplate for native applications with Tauri and Xcode using TypeScript on Vite.
Vue
2
star
14

Pulumi-Starter

🎄 A boilerplate for cloud applications with Pulumi and Azure using TypeScript on Vite.
TypeScript
1
star
15

Shyam-Chen

:octocat: Octocat = 🐙 Octopus + 🐱 Cat
1
star
16

Nest-Starter

🐯 A boilerplate for API Server with Node.js, NestJS, and Mongoose on Webpack.
TypeScript
1
star