Shopping cart app
Piadinamia is a social shopping cart app based on AngularJS
and Firebase.
Register a user with fake credentials and signin in two different tabs or
browsers to play with the app.
User
master
Catalog
master
Cart
Shared Cart
piadinamia
is the default one and an example cart is attachedusers
with catalogs and cartsmaster
list of catalogs with subscribers
{
"users": {
"userId-1": {
"email": "my email",
"name": "user 1",
"catalog": "mycat1",
"catalogs": {
"mycat1": {
"name": "mycat1",
"description": "my catalog",
"items": {
"item a": 0.75,
"item b": 2.35,
"item c": 1.05
},
"cart": {
"0": {
"item": "item a",
"price": 0.75,
"qty": 2,
"total": 1.50
},
"1": {
"item": "item b",
"price": 2.35,
"qty": 1,
"total": 2.35
}
}
}
}
},
"userId-2" {
"email": "my email",
"name": "user 2",
"catalog": "mycat1",
"catalogs": {
"mycat1": {
"name": "mycat1",
"description": "my catalog",
"items": {
"item a": 0.75,
"item b": 2.35,
"item c": 1.05
},
"cart": {
"0": {
"item": "item c",
"price": 1.05,
"qty": 2,
"total": 2.10
}
}
}
}
}
}
"master": {
"mycat1@user 1": {
"owner": userId-1,
"subscribers": {
"0": {
"id": userId-1,
"name": "my user",
},
"1": {
"id": "userId-2",
"name": "user 2"
}
}
},
"mycat1@user 2": {
"owner": userId-2,
"subscribers": {
"0": {
"id": "userId-2",
"name": "user 2"
}
}
}
}
}
$ git clone git@github.com:albertosantini/piadinamia.git
$ cd piadinamia
$ npm install
Edit firebase config in src/client/app/app.core.js
.
$ npm start
Tested locally with Node.js 6.x and Firebase 3.x.