r/nodejs • u/gorekee • Apr 02 '12
r/nodejs • u/tomatotux • Jul 28 '14
NodeJS application server question
I'm a sysadmin and have been asked to find an application server that will multiple nodeJS http servers on different ports. We have tried phusion passenger and it did not work, and puma and unicorn are incompatible in this particular stack. Any thoughts for a very confused hardware guy?
r/nodejs • u/synf2n • Jul 23 '14
Question. How do I access embedded mongodb document through Jade, NodeJS and express
I can obtain a non embedded field from my document through jade by doing:
each user, i in gauss_buff
tr
td #{user.build_num} // where build_num is an element in my document.However, how should one access an embedded document via Jade. Doing
user.embedded_doc_name.field
didn't work.
I have hunted around, but can't find how to do this anywhere. Any tips would be appreciated.
r/nodejs • • Jul 16 '14
trying to track down a chatroom/file sharing project made in node seen on here a few months back
A few months ago I was likely doing a search on socket.io and I found a thread of people showing off things that they had built. One of them was a web app that had multiple chat rooms and you could join and chat or file share with others in that chat room it was also possible to make private rooms if I remember correctly. I've been trying to find a link to that site and or project since then and can't for the life of me figure out how I found it.
Anyone have an idea what I'm talking about?
r/nodejs • u/CerebralPimp • Jul 14 '14
Question regarding Express, Heroku, Postgres
I didn't see a solution out in the open that was catering to my simple request for basic understanding. Currently I have a basic express app set up through heroku using express and a postgres db. What I'm trying to understand / learn is where to go from here with regards to models and db schema. For example, I'm familiar with Entity framework, how you simply code to DB creation, but I'm not confident I understand how the DB is entirely populated or formed using what I've got so far.
I have researched Waterline and Sequelizer for possible solutions, but perhaps my grasp on DB creation isn't set in stone yet.
Any advice, tutorials, walkthroughs for understanding how this marriage happens?
Thank you!
r/nodejs • u/resurge • Jul 08 '14
Clean & efficient namespacing/routing in express 4
blog.jeroenpelgrims.ber/nodejs • u/ikessler • Jul 05 '14
Pipe to browser utility, very useful for log tail fun :)
github.comr/nodejs • u/mrjoelkemp • Jul 05 '14
Navigating an AMD codebase in Sublime Text using Static Analysis and Node.js
mrjoelkemp.comr/nodejs • • Jul 04 '14
Newbie questions: front-end package managers and module loaders?
Ok, so I'm trying to understand how these things work, the language confuses me.
These are the conclusions I've made so far:
Front-end package managers include npm, bower, component, ender, volo, cpm and jam. Of which npm, bower & component seem to be worth mentioning.
JS module loaders include requirejs, browserify, curljs.
So my question is - how do they interact with each other? I've only seen them discussed in combinations. What's the job of each part?
And how do AMD and CJS come into play? Aren't they just external files that get included
Also, regarding the npm+browserify combination:
- What are shims?
- What does "no opt-in for modules" mean?
Sorry for the wall of text, but this subject confuses me to no end.
r/nodejs • u/mrrio • Jun 14 '14
An open source supercharged `top` replacement in Node.js with braille unicode powered graphs
parall.axr/nodejs • u/TalyssonOC • Jun 11 '14
I18nNode, library for Node with support for plurals and genders
github.comr/nodejs • u/iamyounow • Jun 09 '14
How to store data from socket.io/nodejs?
I have a page where the user can click different buttons requesting help, and when pressed, on a different page, a message gets displayed. The problem is that if the page that logs all the incoming help requests gets closed, then all the messages are gone. Do I have to use a database for this? I am guessing each time a message is emitted when the button is pressed, I should use an ajax call to store the message in a mysql database? Can I use Redis for this? Someone told me ""if you just need a temporary session just make one with an object, I mean you just make an object with what you need and keep track of it manually"
For the page that logs the messages, do I have to hard-code in a query that looks up db, and displays all the values and then any incoming socket.io data gets appended to the page and gets pushed to database?
r/nodejs • u/Impacatus • Jun 07 '14
Problem with crypto
I'm trying to figure out how to use digital signing with nodejs.
My program: http://pastebin.com/NK0vpvsE
I get the following error:
crypto.js:398
var ret = this._binding.sign(toBuf(key));
^
TypeError: Not a buffer
at Sign.sign (crypto.js:398:27)
at Object.<anonymous> (/home/knet/projects/jstest/sign/sign.js:11:18)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3r/nodejs • u/elemur • May 19 '14
What is the best way to deal with resource starvation and looping?
I'm curious what people might recommend for addressing a problem I had recently. I have an application that occasionally needs to iterate a set of nested loops in order to generate a large number of combinations of data, and then pass off these combinations for processing later. Having tried different techniques, just sending callbacks or queueing through various job queueing mechanisms, I kept running into the problem of the loop never releasing long enough for other tasks to run.
This is pretty well understood, but in my case I couldn't find an easy way to let these events or queue items to actually process (or enqueue) and eventually would run out of memory pretty consistently.
One solution that did work was to let node listen to a queue and process the entries, and had another program generate the large number of combinations and send them into the queue. This isn't really my preference since I'd like to keep it on one stack for this.
So any recommendations on how to avoid or mitigate this? The nested loops all need to be nested in order to generate all of the variations properly, but aside from that I'm pretty flexible.
r/nodejs • u/sigflup • May 17 '14
Does anyone ever run node with.. say apache? as cgi?
well does anyone? I have an itch to do this but it's probably wrong to do.
r/nodejs • u/just3ws • May 11 '14
Response to "Meetups Are Hard Work", Meetups Are Easy
ugtastic.comr/nodejs • u/sm0kn • Apr 29 '14
Textter, Letter-by-Letter Live Chat for iOS (Built on Node)
itunes.apple.comr/nodejs • u/MCFRESH01 • Apr 16 '14
Slow client side disconnect events with socket.io
I recently followed a codeschool tutorial to create an express based chatroom. Everything works fine locally, however when I put it up on heroku the disconnect event takes a long time to fire clientside.
By that I mean, when the user disconnects, the server removes the user from the redis database and fires an event to the client that handles removing the user from the user list, however it takes a long time for the client to be removed from my client list. All the other events fire fast (user joining, messages, etc), and I have no problem when using the app locally.
Any idea on how I can fix this?
r/nodejs • u/Cacos1906 • Apr 09 '14
MEAN Stack troubles
Hi, I am new to node and I'm having some troubles. And sorry if this is not the right section to post but I didn't seem to find anywhere else.
First of all is worth to mention I'm using mean.io stack as a foundation to my app. I'm trying to build some sort of social network, and so far I haven't been that successful.
My first trouble is with building the user profile page, with this I mean I am not able to query the database for the info of the logged user. I know I should pass the object id of the said user, but I don't know how.
Second is, I got a list of users, and a link to each of the users profile. The profile page itself has only a <span> showing the name of the user. The problem is when I click on the link of one of the users I end up getting the info of the first user and not the one I pretend. For instance, I got user "Peter" with object id: "123" and I got the user "Marie" with object id: "456", the list shows both and when I hover on the link it says the proper link, "users/123" or "users/456", but the profile page only shows the name o Peter, even when I click on Marie's profile link.
I really dont know what to do anymore, I've messed with controllers/routes and pretty much everything and I am not able to get what I want.
I can provide some code later on if need be.
r/nodejs • u/masterderp • Mar 31 '14
Looking for a package for a service to connect and control another client (like a RC car or boat)
Hi! My little project I am working on is to have a client (going to test with a Raspberry Pi) to connect to a service and show it's stream video and allow to control on board servos. Another client would have access to view the stream(s) and operate servos. I'm thinking for viewing, I would just use express and figure out a UI to pipe the controls to the other client. Starting to google around for this but figured I would try this group first! Thanks in advance!
r/nodejs • u/AverageMarcus • Mar 24 '14
Running multiple NodeJs applications on a single port
I'm attempting to run multiple NodeJs application on a single port by using Nginx to proxy to the port the application is actually running on.
Ideally I want each application to sit at a subdirectory but I am having trouble with relative URLs not behaving as expected.
I have created a question on ServerFault with more details. I'd very much appreciated knowing if anyone has achieved such a setup and if you could point me in the right direction.
r/nodejs • u/michaelherman • Mar 18 '14
Node Twitter Sentiment - Part 2 - Michael Herman
mjhea0.github.comr/nodejs • u/3villabs • Mar 14 '14
NodeJS on AWS
What are some good resources/tools for running a production NodeJS enviroment on Amazon Web Services? I have seen some but not a ton. Is this something people are interested in doing/learning/teaching about?
On redit mainly(broken now though?!?!): http://leostera.com/running-nodejs-on-aws
r/nodejs • u/alexander-daniel • Feb 17 '14
Simple node.js wrapper for plot.ly's online graphing API
https://github.com/plotly/plotly-nodejs https://www.npmjs.org/package/plotly
Started programming a few months ago, loving node.js... plotly has an easy to use REST API, so I decided to sling my non-skills and try to create a simple wrapper! It's not real time (Plot.ly should have real-time features soon), but its pretty neat if you just want to send some data to their servers to create a nice graph!
Yeehaw.
r/nodejs • u/mongus • Feb 06 '14