Web frontend using Vue
This boiller plate made for convenient preparation while starting new project.
- Usage
- Getting Started
- Directory Structure
- Tech Stack
- List
- Auto Import
- Clone the repository
git clone https://github.com/hadihammurabi/vrontend.git
- Go to project directory
cd vrontend
- Install dependencies needed
yarn
- Start the dev server
yarn dev
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 |
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>