Coder Social home page Coder Social logo

hovedoppgave-fakestore's Introduction

hovedoppgave-fakestore

opggaveark

Librarys used

  • Tailwind

  • DaisyUI

  • PiniaStore

  • Vue Router

  • yup

  • 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

[globalt]

  • navbar for desktop og mobil(sidebar) med logo med hjemlink
  • footer
  • 404 side
  • 500 errors..

HomeView.vue - Hjemmeside

  • vis frem 3 nyeste produkter med dialog klikk

ProductView.vue - Produktside

  • kjøp via axios post / try catch
    • vis frem som kort, 3 eller 4. pagnation. på mobil vis 1 kort
    • vis frem som kort

MyPageView.vue - Min side

  • 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

AboutView.vue - Om side

Dialog.vue - Dialog komponent

  • produkt info
  • refs props / pinia

Recommended IDE Setup

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

Customize configuration

See Vite Configuration Reference.

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Compile and Minify for Production

npm run build

hovedoppgave-fakestore's People

Contributors

tomhaakon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.