Comprehensive Vue.js Development Guide for 2024 – Full Course with Composition API

Posted by


Vue.js is a popular JavaScript framework for building dynamic and interactive web applications. In this tutorial, we will cover the basics of Vue.js development and also introduce the new Composition API feature that was introduced in Vue 3.

1. Installation

To get started with Vue.js development, you need to have Node.js installed on your system. You can download and install Node.js from the official website.

Once you have Node.js installed, you can install Vue.js using the following command:

npm install -g @vue/cli

This will install the Vue CLI tool on your system, which you can use to create new Vue projects and manage existing projects.

2. Creating a new Vue project

To create a new Vue project, you can use the following command:

vue create my-vue-app

This will create a new directory named my-vue-app and set up a new Vue project inside it. You will be prompted to choose a preset for your project, where you can choose default preset or manually select features you want to include in your project.

3. Understanding the Vue project structure

Once you have created a new Vue project, you will see a number of files and directories inside the project directory. Here are some important files and directories in a Vue project:

  • src/main.ts : The main entry file for your Vue application. This is where you can configure your Vue app and set up the root component.

  • src/components/ : This directory contains Vue components that you can use to build your application.

  • src/views/ : This directory contains Vue router views that are used to display different pages of your application.

  • public/ : This directory contains static assets that you can use in your Vue app.

4. Using the Composition API

The Composition API is a new feature introduced in Vue 3 that allows you to organize your code into reusable logic blocks called "composition functions". This can make your code more maintainable and easier to understand.

Here is an example of using the Composition API in a Vue component:

import { ref } from 'vue';

export default {
  setup() {
    const count = ref(0);

    const increment = () => {
      count.value++;
    };

    return { count, increment };
  }
};

In this example, we are defining a count variable using the ref function, which creates a reactive variable that can be used in the template. We also define an increment function that increments the count variable when called.

5. Building a Vue application

Now that you have a basic understanding of Vue.js and the Composition API, you can start building your own Vue applications. You can create new components, use Vue router for navigation, and use Vuex for state management.

Here are some resources to help you learn more about Vue.js development:

I hope this tutorial has been helpful in getting you started with Vue.js development using the Composition API. Have fun building your Vue applications!

0 0 votes
Article Rating
18 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
@wonsuknet
1 month ago

@meddat
1 month ago

퀄리티 높은 PPT와 깔끔한 영상 컷편집을 보면서 이건 정말 유튜브 무료강의 퀄리티가 아니다 싶었는데 블로그가서 글을 읽으니 고개가 끄덕여지네요.
좋은강의 감사드리고 노력하는 열정과 성실함도 잘 배우고 갑니다. 이제 막 기초 Vue강의 완강인데 다른 영상 더 보면서 배우겠습니다~

@HTMLisnotaprogramminglanguage
1 month ago

야무지다.

@user-td6ot7jz8u
1 month ago

세상에 자막이다 감사합니당

@user-rl2wi7sy2w
1 month ago

이 강좌 떄문에 구독 좋아요 댓글 갑니다요 혜자로운 강의 만들어 주셔서 감사합니다.!!!

@user-dz3uh1yp5z
1 month ago

59:48

@슈론-f2w
1 month ago

좋은 강의 감사합니다! 덕분에 Vue3에 대해 이해가 많이 되었습니다.

@qpgpq
1 month ago

composition api에서 create와 beforeCreate가 왜 안되나 했었는데 setup으로 대체가 되는군요

@user-uq1qs2zr3m
1 month ago

선수지식 문의 드립니다.
강사님 Vue를 수강할려면 선수지식이 어떻게 되는지 그리고 선수지식별 꼭 필요한 부분이 어떻게 되는지 답변 주시면 고맙겟습니다.
감사합니다.

@_1_423
1 month ago

안녕하세요. 구디사는 개발자님 vue2에서 api 조회 페이지를 개발할 때, 해당 메서드를 created 에 넣으면 , 처음에는 맞게 호출되지만 검색 페이지라서 해당 페이지로 라우터를 통해 다시 이동하면, 이전의 검색 데이터를 가지고 있습니다. 그럼 created에 api 조회 메서드를 넣고 updated에도 넣어야 할까요?

@justdxit
1 month ago

정말 많은 도움이 되고있습니다. 이해가 쏙쏙 가네요. 뷰 다 공부하고 리액트도 한번 챙겨보겠습니다.

@hobis0b
1 month ago

감사합니다 훌륭한 강좌~!

@gns1456
1 month ago

1:36:03

@gns1456
1 month ago

안녕하세요 이거 보고 "Vue3 TypeScript Full Course – Composition API로 Pagination 구현하기" 이거 보면 될까요 ??

@miho-storylife
1 month ago

강의 감사합니다. 꾸꾸꾸

@user-xu6ck9eo3c
1 month ago

혹시 강의 중 pinia와 관련된 부분도 추후 업로드 예정이 있으실지 여쭈어볼수 있을까요?^^ 너무 잘 배웠습니다.

@KIM-ye3cw
1 month ago

혹시 나머지 강의 내용은 언제쯤 올리실 예정일까요?

@FiveSolas1
1 month ago

화질이 360p 밖에 없네요. 유튜브 오류인가..