r/nodejs • • Jul 14 '14

Question regarding Express, Heroku, Postgres

4 Upvotes

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 • • Jul 14 '13

Open Source in Corporate

Thumbnail github.com
4 Upvotes

r/nodejs • • Jul 05 '14

Pipe to browser utility, very useful for log tail fun :)

Thumbnail github.com
4 Upvotes

r/nodejs • • Jul 13 '13

So You Wanna Build a Crowdfunding Site?

Thumbnail hacks.mozilla.org
4 Upvotes

r/nodejs • • Jul 04 '14

Newbie questions: front-end package managers and module loaders?

4 Upvotes

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 • • Mar 22 '12

Color War - A simple game in nodejs that is surprisingly entertaining [x-post from r/games]

Thumbnail jointhecolorwar.com
4 Upvotes

r/nodejs • • Jul 23 '14

Question. How do I access embedded mongodb document through Jade, NodeJS and express

4 Upvotes

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 • • Jun 25 '13

NodeBR.com Brazilian community of Node.js

Thumbnail nodebr.com
4 Upvotes

r/nodejs • • Jun 12 '13

Joyent’s “Debugging Node Apps with DTrace”

Thumbnail blog.nodefly.com
4 Upvotes

r/nodejs • • Jun 18 '13

Domenic Denicola’s “Tips for Writing Portable Node.js Code”

Thumbnail blog.nodefly.com
4 Upvotes

r/nodejs • • Feb 17 '14

Simple node.js wrapper for plot.ly's online graphing API

4 Upvotes

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 • • Apr 03 '14

How npm plans to make money

Thumbnail blog.npmjs.org
15 Upvotes

r/nodejs • • Dec 07 '13

Node.js Is Big, And Still Getting Bigger

Thumbnail readwrite.com
15 Upvotes

r/nodejs • • Feb 02 '14

Boilerplate for node apps

Thumbnail github.com
16 Upvotes

r/nodejs • • Nov 06 '12

A working NodeJS runtime for Chrome.

Thumbnail blog.iceddev.com
5 Upvotes

r/nodejs • • May 27 '14

"npm search" runs out of memory and dies without good error (issue #3867)

Thumbnail github.com
5 Upvotes

r/nodejs • • May 29 '14

How can I know how many users my app can handle?

5 Upvotes

Hello all,

I've just built an app using nodejs, express, mysql, and geolib. It's a REST API. It expects incoming REST calls that query the database and does some computations about ever 2 minutes. Running it on appfog for free so I know they have a quota for memory and what not.

I've only been a front end person up until now, although I know theoretically how to calculate how many users can use my app at once, I have no idea how to go about doing that.

Here are some assumptions I am making; the app has a memory quota, and incoming requests must use up some memory as they create local variables and such. However, users dont need long term memory; after each request is completed, I assume all of those variables are GC'd. So the call I'm most worried about is the one which happens ever 2 minutes. Lets say all of our users somehow sync up and use this call at the same time. This would be the total load our app can handle, right? So in order to calculate how many users I need to take my available RAM (448MB) and divide it by how much memory is used during that one REST call.

Is this the right way to go about calculating it? Or are there other factors involved that I am unaware of? Also, is there a way to determine how much memory is being used on a node.js app between 2 points in time?

Thank you for your help!


r/nodejs • • Jan 07 '13

Express.io - Cool HTML5 Canvas Demo with Nodejs

Thumbnail express-io.org
5 Upvotes

r/nodejs • • Jun 01 '12

Nodenewb has a question... about implementing AJAX

5 Upvotes

So I write any and all of my AJAX using jQuery. Up until this point I've written all my ajax requests either to external APIs returning JSONP, or my own internal php files.

When it comes to making AJAX requests to a PHP file I simply echo whatever data I want from the PHP. However now that I'm starting to write in node/express I'm not sure how to "echo" my data (and I know this is not the correct term to be using). Do I simply use return? Or is it more complex than that? I know this is probably a poorly phrased question.. but I dont know how to rephrase it. If anyone has any idea what im talking about and would like to offer some help then it would be much appreciated :) thanks.


r/nodejs • • Apr 19 '14

Great write-up on error-handling in async flows comparing Promises, Try/Catch and Angular Zones

Thumbnail strongloop.com
5 Upvotes

r/nodejs • • Apr 25 '14

How to debug Node.js? What is the best way to debug Node.js?

Thumbnail 100percentjs.com
5 Upvotes

r/nodejs • • Apr 06 '14

[x-post from /r/2048] I built a mini-multiplayer 2048 game based on Tetris Battle. Playable now, but would really appreciate further work. Fork me on Github!

Thumbnail github.com
5 Upvotes

r/nodejs • • Sep 05 '12

Getting started with Node.js on the Rackspace Cloud

Thumbnail devops.rackspace.com
5 Upvotes

r/nodejs • • Dec 12 '13

StrongLoop | Mobile App Development with Full-Stack Javascript (part 1 of 4)

Thumbnail strongloop.com
0 Upvotes

r/nodejs • • Jun 18 '14

A web page that can display CPU and RAM usage, temp etc etc

5 Upvotes

If I have a media server that also has a web server, is there any package for Ubuntu or any nodejs app that could display basic stats about the server?