Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Joe Pea
    @trusktr
    Not unless you request a subset of users in your query
    F.e. you need to track which users are in a room (if you're using "rooms"), and then get a list of those users. The collection might contains a list of IDs. That's only one possible way to do it though.
    Or, you have a Rooms collections, and each object has a users array.
    Nikolilama
    @Nikolilama
    Ok thank you Joe!!
    Joe Pea
    @trusktr
    Np! Hope that got you thinking of an idea.
    Guillaume Darbonne
    @guidouil
    There is also this https://github.com/mizzao/meteor-user-status but I do not know if it still works
    Joe Pea
    @trusktr
    One thing I like about Meteor is tha some packages for it work so well, because they build on everything that Meteor has. In contrast, other frameworks have too many varying libraries from NPM, and one can't simply make a plugin that is built on a specific set of features. Sure, it could import libraries, but the libraries it imports may not be the libraries the application uses.
    Derk92
    @Derk92
    Hi, can I ask here if Meteor is the right solution for me?
    I work on SPA web app that will allow drawing on screen canvas.
    There will be 1k to 10k users in total, concurrent from 300-3k.
    No big database searches, just some internal on-server computation (loops, arrays etc.). As well no need to use realtime communication for now.
    I am worried about scalability and performance, as I read a little bit about this
    Mongo DB sharding etc.
    I like the idea to have interchangable code between frontend and backend though
    Matt Campbell
    @maka-io
    @Derk92 If the majority of the work is drawing with canvas, that's all client-side (doesn't matter how many users you have). You should look into PM2 or some other load balancing Node solutions for that many users.
    Derk92
    @Derk92
    @maka-io Does this PM2 integrate with Meteor or should I use vanilla Node.js for this to work?
    Matt Campbell
    @maka-io
    @Derk92 So, Meteor deploys to Node when you're ready to use it in production. Issuing a "meteor build" will produce a compressed NodeJS bundle file, which you decompress "in production." You'd then set up PM2 to run the node process, and you can tell it how many instances to run, and how it should handle load balancing.
    Guillaume Darbonne
    @guidouil
    @Derk92 also you can go with Galaxy and Atlas with easy scaling. But for 3 front with a good load balance it's 90$/month on Meteor Galaxy
    Also 1 small instance is enough up to 1k synchronous connection with my meteor app. Tested with gatling 😁
    Matt Campbell
    @maka-io
    @guidouil for ease of use, yes that price tag is worth it. For some read up on AWS ec2 (which is what galaxy uses, and heroku) load balancing, you can save a ton.
    @Derk92 if you would like, private message me and I'll set you up with my AMI that has PM2 and NGINX that is a knockout for easy deployments. One better, checkout Meteor-up, I made a tutorial on Medium with my scaffolding tool and MUP on how to get it deployed to EC2
    Sefa Mert Kaya
    @sefamertkaya
    Hello , On Macbook Meteor js runs very slowly, I constantly get a 503 error on the browser. Has anyone experienced such a problem before? Linux runs much faster on the machine.
    prog20901
    @prog20901

    How to make it as portable

    I have created a node js web application. Now i want to make it as portable or platform independent i.e need to make it available for windows, linux and mac

    We need to make it as portable..For example like DocFetcher which runs without any software and just needs JVM. Similarly The user may not know and there should not be a need to install the servers and open the app..Everything should be bundled or portable which should run in any machine

    May be executable or portable apps like https://portableapps.com/apps

    Please advise which is the best and easiest way to do this.

    Thanks

    bf4648
    @bf4648
    How do you access the settings from mobile-config.js within your Meteor app?
    Joe Pea
    @trusktr
    @prog20901 For portability, you can run meteor build, then look at the build output. You'll see a server file, and a client file. You run the server file with Mode, and the client file in the browser. Maybe you can wrap this with Electron for desktops.
    with Mode -> with Node.js, I meant
    You may need to write the Electron window code (see Electron docs how to get started first)
    bradzo
    @bradzo
    @prog20901 take a look at this - it may help you - https://github.com/wojtkowiak/meteor-desktop
    prog20901
    @prog20901
    @bradzo it is very huge..can you help me with a specific demo or good example to build like ex: http://table.branham.org/#/main - where huge pre-defined text has been dumped for easy query and navigation
    number of hits before search, type-ahead, easy navigation, search for title names, search for content - everything is literal fast
    bradzo
    @bradzo
    @prog20901 - I'm sorry - I didn't see your comment "node js web application" - have you built it in Meteor?
    Guillaume Darbonne
    @guidouil
    I was going to ask some question here over reading a request body server side for a webhook and I found this first https://forums.meteor.com/t/getting-request-body-undefined-in-post-requests/42722/7
    Matt Campbell
    @maka-io
    Just published a walk-though of my maka-cli, in case anyone in interested:
    Dom Ramirez
    @domramirez
    What can my team and I do to help keep the Cordova (Android and iOS) versions up to date in Meteor? I've had increasing issues with building, deploying and now using packages related to outdated built-in Cordova.
    I haven't contributed to Meteor core before, but I think this is crucial to us being able to keep using Meteor... which we would very, very, very much like to keep doing.
    Not sure how soon I could hope for a response in this channel. Please email me at dom@betacanon.com if I don't respond quickly enough here.
    prog20901
    @prog20901

    Hi,

    I have huge text files - raw text. I want to convert them to a different language. Google/Microsoft/Yandex is best for online conversions. However we need to copy and paste and moreover it has size limitation as well.

    Is there is any tool which i can use for bulk conversion at one shot which can give the output in multiple files.

    Thanks in advance.

    Matt Campbell
    @maka-io
    and maybe combine it with google’s api
    Joe Pea
    @trusktr

    @domramirez

    What can my team and I do to help keep the Cordova (Android and iOS) versions up to date in Meteor

    Best thing to do is fork meteor, learn how those parts work, update the tools, and make a PR.

    Laurent Roger
    @lc3t35
    @domramirez did you evaluate the migration to react-native compared to this endless and risky effort trying to maintain an outdated library (imho) ?
    Dom Ramirez
    @domramirez

    @lc3t35 I did not. How do we feel about the react-native migration? Is it "ready"?

    I'd be strongly inclined to switch to a react-native implementation of Meteor for sure, but I have Cordova apps in production right now that need to be supported. I can't completely rebuild them just because the wind changed direction.

    Joe Pea
    @trusktr

    @lc3t35 @domramirez It depends on other things too: once you change to React native, are you willing to dig into iOS and Android code when things don't work the way you want? F.e., ready to dig into iOS and Android rendering to make custom modifications that may not yet be possible with plain React-native?

    Personally, I prefer web tech for UI, and would be willing to update cordova just for that.

    Does react-native come with a connected server and database ready to go?
    Can you also deploy your react-native app to web and SPA (f.e. Chromebooks)?
    Laurent Roger
    @lc3t35
    1) native code : I never had to write native code, always found what I needed in RN ecosystem
    2) that is the question : is it worth maintaining cordova ?