Firecart: a shopping cart with a Firebase backend

Recently i was intrigued by Firebase service, a powerfull service for realtime and reactive apps: the problem i solve is a shopping list that permits to load items on a device, think about a wife at home that needs something, and another device with the same app installed and that in real time will see the list updated.

Also, i have separated the app in 2 files:

  1. firecart.js: this file contains the logic, event handlers etc
  2. createLayout.js: this file contains the various layout and controls of the app

As already stated the app is based on a firebase backend, but to avoid users to have to register to the service, login to the dashboard and create a Firebase app ad data structure,  i designed the app as multiuser or if preferred as multigroups:everyone can define its own group with private data; at first start users will access to a samplecart group.

The app can be localized and has IT (the default) and EN langs, but you can extend for other languages: you simply have to add a txt file, ie DE.txt for Deutch or JPN.txt for Japanese, in the /sdcard/fireLangs folder: it is a plain object with couple-value pairs for the various label; refer to one of the file already here for details. Of course you can cut unusefull languages deleting the corrisponding files: firecart dinamically loads the list of the files in the folder when launched

The use is very simple: at launch you see a layout with a list of pending items: check the appropriate check and press the large btn on bottom.

On the main screen you find:

  • up right btn: click to go to the section where you can compile the list of items
  • up left icon: long touch to go to the section where you can create new group, change group; here you can also change language from a list of already available ones; to change group you have to digit name and password: if the inserted name is not present the app will ask if you want to create it.

You can download the firecart.apk to install and use it, 

If you area DroidScript user, as i hope, you can download filecart.spk ; to install the spk properly, download it in the Download folder, move here, select  the spk and do share to DroidScript.

You can download firecart.zip too: unzip its content (js files, img folder etc) in /sdcard/AndroidScript/firecart

Revisited on 27.11.2014

I added to features to the app:

  1. if for any reason Firebase data are not ready, you cannot go to the page where the list of items is loaded;
  2. now the passord field in the section where you select the group is masked.

Point 2 required adding a new label, in IT and EN, for no database connection so if you had already instrlled firecart, delete the /sdcard/firelangs on reinstall.

I've written this app as a proof of concept on using realtime backend, in this case FIREBASE, so you may note that code is not optimized; also, in a real world app surely you have to sign an account on Firebase, they have a limited plan for free, and secure it with autenthication.

Fell free to comment this post or app: i'll appreciate a lot.

90 Comments :
Richard King
on Friday 14 November 2014 04:20 AM
Hi. i'm interested in your example but the spk will not load into the editor. if i try unzipping it with 7zip it does not look like any other spk. Can you provide a new link to the spk, please?
salvatore fusto
on Wednesday 26 November 2014 02:38 PM
Richard, excuse for this delay, i'm adding other feature: test for connection status plus an encrypted field forma password then i'll provide a corrected link.
Thanks and regards
Salvatore Fusto
on Thursday 27 November 2014 10:43 AM
Richard,i updated the app and changed the source format from spk to zip so you'd not have any problem.
superior papers.com
on Thursday 24 December 2015 10:37 PM
I had also the sane problem to upload this zip file. You made the app into two designs for accessing into the dashboard if required. But I still do not make sense why you allow all the users to access into the main firebased backen? I think the users should access into the source with a legal registration.
Salvatore Fusto
on Thursday 31 December 2015 03:23 AM
This is only a proof of concept to test a Droidscript app with a realtime backend based on Firebase, absolutely it is not a professional app where surely you are right on secutity.
regards
custom paper writers click her
on Friday 12 February 2016 04:19 PM
Web development is a profession that need best of your knowledge for a good project. Its not possible in IT field to become a master of 100 percent languages. But having grip over one field would make you earn high.
mulberry replica handbags
on Monday 09 May 2016 02:41 AM
createLayout.js: this file contains the various layout and controls of the app.
miu miu outlet
on Monday 09 May 2016 02:42 AM
and another device with the same app installed and that in real time will see the list updated.
chanel replica handbags
on Thursday 02 June 2016 02:54 AM
not alone is the day with the a lot of applied of the package, but aswell to become a abounding bag use yo
why use a tariff dissertation
on Monday 04 July 2016 11:13 PM
This detailed description actually help me to get from firebase services. I think, these link work and contain superb system of logic and layout aspects. Thanks for sharing!
edit-ing.services
on Friday 19 August 2016 01:51 AM
Now we can use more features in this app. I think that the developers have improved its quality by such transformations. This will make the work more productive.
Best Movies on Netflix Canada
on Thursday 08 September 2016 05:04 AM
Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts
animation studios los angeles
on Friday 09 September 2016 08:36 PM
Awesome material! Thanks a lot, dude, for giving this so good material to us. I’ve just recently completed one of my projects due to the information from this post. Thanks man, once again
novoline casino
on Saturday 10 September 2016 08:02 PM
Thank you so much for this very usefull information. It's just a very effectively written article. It will likely be useful to anyone who makes use of it, together with me.
assembly line jobs
on Sunday 11 September 2016 04:51 AM
As a Newbie, I am permanently exploring online for articles that can be of assistance to me. Thank you
Emergency Water Removal Champa
on Sunday 11 September 2016 09:49 PM
I found your blog a few days ago from Google and have been reading it over the past few days. I am going to subscribe your blog.
concrete finisher jobs
on Monday 12 September 2016 03:48 AM
You have a really ennobling manner of exploring and sharing your thoughts. it's terribly uncommon these days, legion sites and blogs having copy affixed or rewritten information. But here, no doubt, information is original and extremely well structured. Keep it up
demolition careers
on Thursday 15 September 2016 12:06 AM
At this point you’ll find out what is important, it all gives a url to the appealing page:
white board
on Thursday 15 September 2016 10:19 PM
I want to it articles thank for your time of this nice read!!! I definitely enjoy every little bit of it and I have you bookmarked to check out new stuff on your blog a must read blog concrete finisher jobs
matcha tee kaufen
on Friday 16 September 2016 05:17 AM
Excellent .. Amazing .. I’ll bookmark your blog and take the feeds also.
novoline online
on Monday 19 September 2016 10:12 AM
This is a wonderful article, Given so much info in it, These type of articles keeps the users interest in the website, and keep on sharing more ... good luck
Background Remove
on Wednesday 21 September 2016 04:43 AM
You have a very inspiring way of exploring and sharing your thoughts. It is very uncommon nowadays, lots of sites and blogs having copy pasted or rewritten info.
law exam preparation
on Wednesday 21 September 2016 08:49 PM
I discovered that looking up the average wait times at airport security lines is about as frustrating as actually waiting in line at a checkpoint
academic writing service 
on Thursday 22 September 2016 08:45 PM
Thank you very much for this information. A very timely and great webblog. Looking forward to your next post.
travel course
on Friday 23 September 2016 12:09 AM
Your website is terribly informative and your articles are wonderful.
www.crockettcreek.com/index.p
on Monday 03 October 2016 04:19 AM
I have read your blog it is very helpful for me. I want to say thanks to you. I have bookmark your site for future updates.
www.crockettcreek.com/index.p
on Monday 03 October 2016 04:21 AM
Hi! This is my first visit to your blog! We are a team of volunteers and new initiatives in the same niche. Blog gave us useful information to work. You have done an amazing job!
residential homes for sale
on Monday 03 October 2016 10:33 AM
most likely appreciating each and every bit of it. It is an incredible site and decent impart. I need to much obliged. Great employment! You all do an incredible blog, and have some extraordinary substance. Keep doing awesome.
online real estate search
on Monday 03 October 2016 11:27 AM
Superbly written article. if only all bloggers offered the same content as you. the internet would be a far better place..
Waschmaschinen 2016
on Monday 03 October 2016 10:40 PM
All the contents you mentioned in post is too good and can be very useful. I will keep it in mind, thanks for sharing the information keep updating, looking forward for more posts.Thanks
Productos de limpieza
on Tuesday 04 October 2016 04:45 AM
This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post.
Ambientación para el hogar
on Tuesday 04 October 2016 09:22 AM
I recently came across your blog and have been reading along. I thought I would leave my first comment. I don't know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often.
chalkboard
on Wednesday 05 October 2016 04:56 AM
I would also motivate just about every person to save this web page for any favorite assistance to assist posted the appearance. weave extension calgary
travel course
on Thursday 06 October 2016 05:04 AM
It is perfect time to make some plans for the future and it is time to be happy. I’ve read this post and if I could I desire to suggest you few interesting things or tips. Perhaps you could write next articles referring to this article. I want to read more things about it!
car cover
on Saturday 08 October 2016 04:51 AM
Our mission is also our passion: helping our clients selling and buying Real Estate and Investment Brokerage. If you are looking to invest in Property, purchase a villa, a plot to develop, a first line beach penthouse, apartment, townhouse or country property in and around these exclusive locations please, take a few moments to browse thought our site, to view our database of continuously updated properties
car cover
on Saturday 08 October 2016 04:53 AM
think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article.
get well gift baskets
on Sunday 09 October 2016 12:47 AM
This is a great article thanks for sharing this informative information. I will visit your blog regularly for some latest post. I will visit your blog regularly for Some latest post.
gourmet gift baskets
on Sunday 09 October 2016 01:47 AM
There are a lot of great ideas in this post. I hope you keep this quality level up so we can enjoy a lot more great content from your side.
tact advisory
on Tuesday 11 October 2016 08:52 AM
Only aspire to mention ones content can be as incredible. This clarity with your post is superb and that i may think you’re a guru for this issue. High-quality along with your concur permit me to to seize your current give to keep modified by using approaching blog post. Thanks a lot hundreds of along with you should go on the pleasurable get the job done.
epos system
on Tuesday 11 October 2016 11:12 PM
I read that Post and got it fine and informative. Please share more like that...
Repeat Ties
on Thursday 13 October 2016 02:35 AM
Whether driving, riding a bicycle, exercising in the gymnasium or even studying, Geniux ensures that one stays focused and hence is able to meet the required concentration to achieve the intended goal.
wallets for women
on Friday 14 October 2016 10:34 PM
I truly delighted in perusing this post, huge fan. Keep doing awesome me when would you be able to distribute more articles or where would I be able to peruse more on the subject
Canon Spiegelreflexkamera 
on Sunday 16 October 2016 09:32 AM
I really like your article. It’s evident that you have a lot knowledge on this topic. Your points are well made and relatable. Thanks for writing engaging and interesting material.
Carpet Cleaning Mattoon IL
on Monday 17 October 2016 09:45 AM
I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article.
Continuing Professional Develo
on Wednesday 19 October 2016 04:24 AM
Many thanks for the exciting blog posting! Simply put your blog post to my favorite blog list and will look forward for additional updates. Simply wanted to write down a word in order to say thanks to you for those wonderful tips.
lose weight in a week
on Thursday 20 October 2016 04:28 AM
Positive site, where did u come up with the information on this posting? I'm pleased I discovered it though, ill be checking back soon to find out what additional posts you include.
Rotor
on Thursday 20 October 2016 09:51 AM
That's what makes you the best. You should keep publishing more articles and you will Such Become One of the best writers ever
fluoride water filtersI’m exci
on Friday 21 October 2016 07:00 AM
I’m excited to uncover this page. I need to to thank you for ones time for this particularly fantastic read!! I definitely really liked every part of it and i also have you saved to fav to look at new information in your site
mdma kopen
on Saturday 22 October 2016 07:06 AM
That is the application that's digitally to be had and so may also be considered as a portable resolution which someone can effectively make use and get the best kind of outcome.
???? ??????
on Sunday 23 October 2016 02:42 AM
Your blogs further more each else volume is so entertaining further serviceable It appoints me befall retreat encore. I will instantly grab your rss feed to stay informed of any updates. chiropractor in calgary
fat diminisher system reviews
on Monday 24 October 2016 04:26 AM
Very useful post. This is my first time i visit here.
audio visual staffing
on Tuesday 25 October 2016 04:18 AM
This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post.
Maternity photography Hong Kon
on Wednesday 26 October 2016 04:43 AM
We are really grateful for your blog post. You will find a lot of approaches after visiting your post. Great work.
Bolognese
on Wednesday 26 October 2016 09:36 AM
This is also a very good post which I really enjoyed reading. It is not everyday that I have the possibility to see something like this
website
on Wednesday 26 October 2016 08:42 PM
Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with more information? It is extremely helpful for me.
stylus pen
on Thursday 27 October 2016 10:16 AM
Superb blog post. Any place strikes numerous pressing obstacles of your modern culture. People can not be uninvolved that will those obstacles.
glass installer jobs
on Saturday 29 October 2016 08:35 PM
I’ve read some good stuff here. Definitely worth bookmarking for revisiting. I surprise how much effort you put to create such a great informative website
travel book
on Saturday 29 October 2016 11:45 PM
is a brand new all ordinary wellbeing consultant that promises to aid humans do away with their toenail fungus without any steeply-priced drugs, gels, or creams.
their address
on Monday 31 October 2016 09:43 AM
approaches that feature sloping planes to add space to the existing roof.
programmer marietta
on Saturday 26 November 2016 01:20 AM
Absolutely fantastic posting! Lots of useful information and inspiration, both of which we all need!Relay appreciate your work.
??? ?????? ????? ??????
on Saturday 26 November 2016 08:42 PM
I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article.
best anti cellulite cream
on Monday 28 November 2016 05:56 AM
That appears to be excellent however i am still not too sure that I like it. At any rate will look far more into it and decide personally!
obat kuat
on Saturday 10 December 2016 06:39 AM
I recently found many useful information in your website especially this blog page. Among the lots of comments on your articles. Thanks for sharing.
???? vpn
on Thursday 15 December 2016 04:58 AM
Love to read it,Waiting For More new Update and I Already Read your Recent Post its Great Thanks.
zuhair murad elbise modelleri
on Tuesday 27 December 2016 04:03 AM
Very interesting blog. Alot of blogs I see these days don't really provide anything that I'm interested in, but I'm most definately interested in this one. Just thought that I would post and let you know.
Seo Cincinnati
on Tuesday 27 December 2016 06:57 AM
Very nice article, I enjoyed reading your post, very nice share, I want to twit this to my followers. Thanks!.
voyance direct
on Friday 30 December 2016 04:21 AM
Great tips and very easy to understand. This will definitely be very useful for me when I get a chance to start my blog
Buryan
on Monday 02 January 2017 09:07 AM
When your website or blog goes live for the first time, it is exciting. That is until you realize no one but you and your.
Queens party halls
on Wednesday 04 January 2017 04:29 AM
Very nice article, I enjoyed reading your post, very nice share, I want to twit this to my followers. Thanks!.
web hosting mexico
on Sunday 08 January 2017 05:09 AM
Just pure brilliance from you here. I have never expected something less than this from you and you have not disappointed me at all. I suppose you will keep the quality work going on.
pengalaman bercuti
on Sunday 22 January 2017 01:12 AM
i want this article to finish my assignment within the faculty, and it has same topic together with your article. Thanks, nice share.
Kerja Dari Rumah Dengan iLance
on Sunday 22 January 2017 01:19 AM
Thank a lot. You have done excellent job. I enjoyed your blog . Nice efforts
buy instagram followers 1
on Sunday 22 January 2017 01:29 AM
I've been looking for info on this topic for a while. I'm happy this one is so great. Keep up the excellent work
buy instagram followers 1
on Monday 23 January 2017 04:19 AM
thank you so much for giving us a chance to have this opportunity..
a sötét 50 árnyalata teljes fi
on Monday 23 January 2017 04:19 AM
thank you so much for giving us a chance to have this opportunity..
http://www.legnomarket.info
on Monday 23 January 2017 04:23 AM
This is a fantastic website and I can not recommend you guys enough.
His Secret Obsession
on Tuesday 31 January 2017 04:52 AM
Very nice job... Thanks for sharing this amazing and educative blog post!
VideoPal Review
on Friday 21 April 2017 03:31 AM
I'm not sure if this is a format issue or something to do with internet browser compatibility but I thought I'd post to let you know. The layout look great though! Hope you get the problem resolved soon.
Yardllop
on Sunday 10 December 2017 08:08 PM
I think this is a really good article. You make this information interesting and engaging. You give readers a lot to think about and I appreciate that kind of writing
192.168.1.1
afreen nazi
on Saturday 16 December 2017 07:01 AM
I found that site very usefull and this survey is very cirious, I ' ve never seen a blog that demand a survey for this actions, very curious... https://eveningdesertsafari.com
cheap smm panel
on Saturday 07 April 2018 10:56 AM
Instagram users for advertising purposes. Here are a few brands that are effectively using Instagram for marketing, branding and advertising purposes
payday loan san diego
on Sunday 15 April 2018 12:34 AM
The primary thing that you should know is that a payday advance can be precisely what you require however it is not generally the best decision in each circumstance. This is the reason you ought to be careful about the ads that are oftentimes observed.
click here to start
on Thursday 03 May 2018 05:03 AM
Very Good and great share awesome...!!
muzhiwan english
on Wednesday 01 August 2018 09:08 AM
The ways to avoid smartphone malware and prevent smartphone malware are evolving with the threats and even the best antivirus solutions we know of need to be adapted as threats are developed and released.
shawn jasper
on Saturday 11 August 2018 04:24 AM
I must say we should have an online discussion on this. PhD dissertation writing services only professional writers can make this kind of material, cheers
http://healthandexercisetips.c
on Monday 10 September 2018 05:15 AM
There are several software available which can find blogs relevant to your selected niche.
AsharSeo
on Wednesday 12 September 2018 03:04 AM
I simply wished to thank you so much once more. I am not sure what I would’ve gone through without the entire methods contributed by you about such subject matter. It had been a very intimidating circumstance for me personally, nevertheless coming across a new well-written manner you resolved the issue forced me to leap for contentment. Now i’m happy for your support and trust you realize what a powerful job you were carrying out educating most people thru a web site. Most probably you haven’t encountered all of us. Thanksgiving Day Message
Robinjack
on Friday 14 September 2018 09:55 AM
This site is really cool! How was it made ! Adhum Carter
see here
on Tuesday 23 October 2018 10:35 AM
Great info! I recently came across your blog and have been reading along. I thought I would leave my first comment. I don?t know what to say except that I have.
10Fabs
on Tuesday 30 October 2018 04:42 AM
Smart phones are amazing. Unlike normal phones, we can use smart phones for different tasks such as making calls, sending text messages, checking emails and surfing the internet. You can even access GPS system for navigation.
Name  
(required)
Email  
(required - never shown publicly)
Web Site  
Notify me of new comments via email.
Notify me of replies via email.