Comments (4)
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.
How to add Product list ? whether with the admin user ?
from angular-shoppingcart.
from angular-shoppingcart.
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)
- Error while Creating User - Cant create user HOT 3
- Add payment gateway
- Payload error and some warnings
- Same item can be added to wishlist multiple times
- Npm installaton isue HOT 1
- Firebase DB setup HOT 23
- Support for Firebase Cloud Firestore database HOT 2
- For Admin Role
- Possibilty to make the page wider HOT 2
- Signin with Google HOT 1
- [BUG]unable to checkout products HOT 2
- [BUG] Firebase fatal error HOT 2
- Question about use updateProduct() HOT 1
- How to connect it to MongoDB HOT 1
- PROJECT OVERVIEW HOT 1
- [BUG] | Sign page HOT 1
- hello , may I ask you about payment method with paypal or any online payment ?
- shippings.userId undefined
- I can't get products HOT 1
- shopping cart nodemodules are not installing HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-shoppingcart.