Code Monkey home page Code Monkey logo

Comments (4)

ikismail avatar ikismail commented on September 13, 2024

Firebase DB Example:

  • JSON Structure for Cart Products List
  "cartProducts" : {   
    "-LDVbMy8xSH9RA3YGWiM" : {
      "product" : {
        "favourite" : false,
        "productAdded" : 1514282078,
        "productCategory" : "Smartphone",
        "productDescription" : "Fullscreen Display, Aspect Ratio: 18:9, 3D Corning Gorilla Glass 5, Always-on Display, 100% DCI-P3 Coverage, 100000:1 Super Contrast Ratio, True Black Level, Full 24-bits Depth or 16.77 Million Colors",
        "productId" : "PROD_SJUw2cJQf",
        "productImageUrl" : "https://boygeniusreport.files.wordpress.com/2017/06/google-pixel-2-concept.jpg?quality=98&strip=all&w=640",
        "productName" : "Google Pixel 2 XL Black 64GB",
        "productPrice" : 63897,
        "productQuatity" : "3",
        "productSeller" : "Google",
        "ratings" : 1
      },
      "productId" : "-L1HEh4u0KBF1eMH_gft",
      "userId" : "-LDVawHIlXMu0ceeqPIE"
    }
  },
  • JSON Structure for User List
  "clients" : {                         
    "-L1MN8igof2BizQB3F_0" : {
      "emailId" : "[email protected]",
      "isAdmin" : false,
      "location" : {
        "lat" : 40.149114,
        "lon" : -94.50073
      },
      "password" : "ismail",
      "phoneNumber" : "8124794942",
      "userName" : "Ismail"
    }
  },
  • JSON Structure for Users Favourite Products List
  "favouriteProducts" : {    
    "-LEArmvwq0sKn-oZirQd" : {
      "product" : {
        "favourite" : false,
        "productAdded" : 1514291542,
        "productCategory" : "Smartphone",
        "productDescription" : "The iPhone X models have a 5.8\" (diagonal) widescreen LED-backlit True Tone, wide color (P3) \"Super Retina\" with 3D Touch and a 2436x1125 native resolution at 458 ppi",
        "productId" : "PROD_ryA8baJmz",
        "productImageUrl" : "https://boygeniusreport.files.wordpress.com/2017/10/iphone-x-in-hand.jpg?quality=98&strip=all&w=640",
        "productName" : "Apple iPhone X (Japan/A1902) 64,GB ",
        "productPrice" : 87049,
        "productQuatity" : "5",
        "productSeller" : "Apple",
        "ratings" : 4
      },
      "productId" : "-L1HnndxVc2-KaJ10Skc",
      "userId" : "-LEArZoCs6WY-qx0ZfFq"
    }
  },
  • JSON Structure for Product Lsit
  "products" : {         
    "-L1HlRIMrdzGQk_I4Q8v" : {
      "favourite" : false,
      "productAdded" : 1514290922,
      "productCategory" : "Smartphone",
      "productDescription" : "12.3MP primary camera with phase detection autofocus (PDAF), laser detection autofocus (LDAF),4K (30 fps) video capture, HD 240 fps (8x) and full HD 120 fps (4x) slow motion video, CRI-90 dual-LED flash and 8MP front facing camera.",
      "productId" : "PROD_HJflyT1mz",
      "productImageUrl" : "http://4.bp.blogspot.com/-z2gubajOO3c/WYRFSn07xSI/AAAAAAAAA78/K7q2Gt9oTmAM_uMfBOpIPBBWqa_HZjlcQCK4BGAYYCw/s1600/google-pixel-xl-2-gfxbench-vazamento_chamada.jpg",
      "productName" : "Google Pixel XL (Quite Black, 32GB)",
      "productPrice" : 40000,
      "productQuatity" : "2",
      "productSeller" : "Google",
      "ratings" : 5
    }
  }
}

from angular-shoppingcart.

onowb avatar onowb commented on September 13, 2024

How to add Product list ? whether with the admin user ?

from angular-shoppingcart.

ikismail avatar ikismail commented on September 13, 2024

from angular-shoppingcart.

SofianeBoumedine avatar SofianeBoumedine commented on September 13, 2024

Hi, I have like you docs say use the account used on my firebase project but when i want access to add-product pages i Have 404. when i have add the product by the database in the firebase console this doesn't work.

from angular-shoppingcart.

Related Issues (20)

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.