AhlamKhalid / Cart-Vue-3

How To Build a Shopping Cart with Vue 3 and JSON Server [Composition API]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How To Build a Shopping Cart with Vue 3 and JSON Server [Composition API]

In this tutorial, we are building a functional shopping cart. We learn how to get cart items from fake API, update item quantity, delete item, calculate how many cart items, and Calculate total price.

Also, we will tackle core Vue 3 concepts like: Composition API πŸ’š script setup tag πŸ’š Class binding πŸ’š Events πŸ’š lifecycle hooks πŸ’š Vue directives: v-bind & v-for πŸ’š Components πŸ’š Props πŸ’š Emitted events πŸ’š Computed properties.

We will build a fake API using json-server package. This will help us practice doing API operations like GET, PUT, and DELETE.

YouTube tutorial

How To Build a Shopping Cart with Vue 3 and JSON Server [Composition API]

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Run JSON Server

npm run backend

Compile and Minify for Production

npm run build

About

How To Build a Shopping Cart with Vue 3 and JSON Server [Composition API]


Languages

Language:Vue 71.4%Language:CSS 15.4%Language:HTML 9.4%Language:JavaScript 3.8%