Skip to content

hadihammurabi/vrontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vrontend

Web frontend using Vue

This boiller plate made for convenient preparation while starting new project.

Table Of Contents

  1. Usage
    • Getting Started
    • Directory Structure
  2. Tech Stack
    • List
    • Auto Import

Usage

Getting Started

  1. Clone the repository
git clone https://github.com/hadihammurabi/vrontend.git
  1. Go to project directory
cd vrontend
  1. Install dependencies needed
yarn
  1. Start the dev server
yarn dev

Directory Structure

image

Tech Stack

List

This template includes utilities bellow.

Name Description
Vue Library/framework to do DOM manipulation
Vue Router Library to do client-side routing (use history mode by default)
PrimeVue Component library that have most of things needed
Axios HTTP client to do network communication

Auto Import

Several functions/components are auto-imported using:

  • unplugin-auto-import/vite
  • unplugin-vue-components/vite

Here specific things registered to be auto-imported.

  • vue
  • vue-router
  • ./src/composable
  • ./src/component
  • ./src/page

This configuration increase productivity because we no need to do import commont things any more. We can use it directly.

Example:

<script lang="ts" setup>
const route = useRoute();
const fullPath = ref('');
onMounted(() => {
  fullPath.value = route.fullPath;
});
</script>

<template>
  {{ fullPath }} Me
</template>