This project is a frontend for the DropFile - a DropBox alternative developed for Cloud Computing Systems.
src
- source codeassets
- static assetscomponents
- Vue components - reusable pieces of UIrouter
- Vue router - handles navigation in Single Page Applicationstore
- Pinia store - handles state managementviews
- Vue views - pages of the applicationApp.vue
- root Vue componentmain.js
- entry point
<script setup>
import { ref } from 'vue';
const count = ref(0);
const increment = () => count.value++;
</script>
<template>
<button @click="increment">
Count is: {{ count }}
</button>
</template>
<style scoped>
button {
background-color: #42b983;
border: none;
border-radius: 2px;
color: white;
font-size: 15px;
padding: 8px 16px;
}
</style>
Components consist of three parts:
<script setup>
- script part of the component<template>
- template part of the component, HTML-like syntax<style scoped>
- style part of the component
To make a reactive variable, use ref
function. To make a reactive object (whole object, not just a string), use reactive
function.
To access the value of the reactive variable, use .value
property.
Further information on exemplary structures inside template
may be found in Vue documentation.
npm install
npm run dev
npm run build
npm run format