These are chat archives for deployd/deployd

2nd
Jun 2015
Vladimir Minkin
@DQvsRA
Jun 02 2015 06:36
I have a huge collection of data is it any way to get count of it without getting it at all?
Something like db.collection.find().count()?
Arye Shalev
@pantchox
Jun 02 2015 08:45
@DQvsRA isnt that a mongoDB question? i am not a DB expert at all but i think you can search for that since deployd supports mongoDB actions so it should be transparent
Myroslav Tantsyura
@Nahasaki
Jun 02 2015 10:14
Hi all,
How can a create new server method without creating a collection?
Like some custom get requests, which will manipulate with data from existing collections and returns some result
Rares Golea
@rgolea
Jun 02 2015 10:17
@Nahasaki you could create your own module
Arye Shalev
@pantchox
Jun 02 2015 10:47
@Nahasaki check out examples of modules
@Nahasaki https://www.npmjs.com/package/dpd-fileupload - this is a good one examin the source to see how it handle request.
Arye Shalev
@pantchox
Jun 02 2015 10:55
guys what is the main differences from meteor to deployd
Myroslav Tantsyura
@Nahasaki
Jun 02 2015 11:04
@pantchox thanx very much
Arye Shalev
@pantchox
Jun 02 2015 11:11
@Nahasaki sure man
Rares Golea
@rgolea
Jun 02 2015 11:13
@pantchox I think that in meteor you can write frontend and backend in the same files… and I know there is no folder structure… Meteor is for everything (Fullstack, api, etc) when deployd is just for api
Arye Shalev
@pantchox
Jun 02 2015 11:15
@rgolea yeah but thing is that when they are changing the collections value it auto updates on the server and the clients that are viewiing it in the same time, i know deployd chat example has this but how is it diffrent
Rares Golea
@rgolea
Jun 02 2015 11:17
@pantchox I think meteor is changing it livepreview and I know deployd is doing it with websockets
I don’t really know anything else about meteor
Arye Shalev
@pantchox
Jun 02 2015 11:18
yeah you are right :) i am just looking for the difference in a manner of knowing the capabilities
Rares Golea
@rgolea
Jun 02 2015 11:21
@pantchox personally, I think that if you change the content with livepreview you will have a slower performance because you have to listen to changes in the code and change them in the entire website. This doesn’t apply to apps so, if you’re making an app (hybrid) and want to display things for a collection as they change in the db, you could only do that if the wrapper and the device supports livepreview/livereload. Socket.io gets to push you just the changes and it’s "app capable".
maybe I’m wrong but I do have my concerns about the size of the downloaded info
in meteor, the server generates the content and you have it downloaded every time it changes whereas with deployd you download just the change in a json format and change the frontend with javascript. You won’t notice the difference on the desktop browser, or even on a mobile browser on Wi-Fi. Now… the problem with meteor begins when you are on GPRS or slow internet connection, or even if you don’t have an unlimited internet plan (I don’t know about the US but in Europe is very common to have 500MB plan for the entire month. After that your speed descreases drastically). You can’t expect your users to have a great experience if you constantly make them download more than they should.
Arye Shalev
@pantchox
Jun 02 2015 11:32
@rgolea thanks for the explaination, the speed of internet is increasing also to LTE also here in israel where i am from. so i don't worry for user experience with that. for now i am trying to build my own framework using deployd (or any other system that backbone supports) and backbone for the data model, ratchet2.0 mobile css framework for the design and RactiveJS for the view (and the data handling with backbone) so far its going cool. then i want to export this to phonegap
if you guys are looking for an amazing view library i recommand RactiveJS it is superb light and very good community.
Rares Golea
@rgolea
Jun 02 2015 11:35
@pantchox personally, I think that, if later on you want to export it to phonegap, stick to socket.io better than livepreview. Use livepreview in development but keep your code and your resources as small as possible...
Arye Shalev
@pantchox
Jun 02 2015 11:55
yeah got it, but if its phonegap the only communication will be API to deployd via normal AJAX request
Rares Golea
@rgolea
Jun 02 2015 11:56
I thought you wanted to use meteor...
Arye Shalev
@pantchox
Jun 02 2015 12:42
nahh its a fullstack i dont need it
Rares Golea
@rgolea
Jun 02 2015 12:42
@pantchox you can, if you want to, transform it to an API
Jozsef Kiraly
@fonix232
Jun 02 2015 16:56
Hey guys! I'm having some issues with installing deployd - the installer won't run, and it freezes File Explorer/Total Commander when ran.
Arye Shalev
@pantchox
Jun 02 2015 17:03
@fonix232 if you are on windows open the command line
Jozsef Kiraly
@fonix232
Jun 02 2015 17:03
I thought running Total Commander was a dead giveaway that I'm on win ;)
funny thing though - why won't the installer run by regularly running it?
Arye Shalev
@pantchox
Jun 02 2015 17:04
@fonix232 or in total commander be in the folder of the install then write "cmd.exe" , then the command line will open, run the installer from the command line by just typing its file name and enter. then you can see the error.
@fonix232 i never installed it on windows but good luck! :) altough i use windows i have a linux virtual machine i run all my programming enviroment in it
Jozsef Kiraly
@fonix232
Jun 02 2015 17:05
I know how to run from cmd ;) not that big of a dumbass here haha. It won't run if you launch it the regular way, but it will if you do so from command line.
Arye Shalev
@pantchox
Jun 02 2015 17:21
so did it fix your issue?
Jozsef Kiraly
@fonix232
Jun 02 2015 17:21
yes it did, thanks
Arye Shalev
@pantchox
Jun 02 2015 17:59
awesome :)