-
api: fakestoreapi.com
-
all users
fetch('https://fakestoreapi.com/users').then(res=>res.json()).then(json=>console.log(json))
-
single user
fetch('https://fakestoreapi.com/users/1').then(res=>res.json()).then(json=>console.log(json))
-
get all categories
fetch('https://fakestoreapi.com/productscategories').then(res=>res.json()).then(json=>console.log(json))
-
get single category
fetch('https://fakestoreapi.com/productscategory/jewelery').then(res=>res.json()).then(json=>console.log(json))
-
get all products
fetch('https://fakestoreapi.com/products').then(res=>res.json()).then(json=>console.log(json))
-
get single product
fetch('https://fakestoreapi.com/products/1').then(res=>res.json()).then(json=>console.log(json))
-
-
MOBILE FIRST
- navbar for desktop og mobil(sidebar) med logo med hjemlink
- footer
- 404 side
- 500 errors..
- vis frem 3 nyeste produkter med dialog klikk
- kjøp via axios post / try catch
- vis frem som kort, 3 eller 4. pagnation. på mobil vis 1 kort
- vis frem som kort
-
2 visninger
-
en side for om man har kjøpt noe
- tabell med GET query
- sortering
- søke, slette.
- kjøpe slett via bekreft dialog w
-
en side for om man ikke har kjøpt noe
-
- produkt info
- refs props / pinia
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
See Vite Configuration Reference.
npm install
npm run dev
npm run build