0
votes
0answers
9 views

NodeJS MongoDB returns null docs reference on AppFog

Background I developed an application using NodeJS, MongoDB and CoffeeScript. Locally it runs fine, but when deployed to AppFog strange things started happening. I was able to narrow down the issue. ...
0
votes
1answer
16 views

Deleting a subdocument by Id in Mongo using node.js

I am using nodejs, express, mongo and coffeescript and I have a simple blog post with comments, and I would like to add the possibility to delete a specific comment at any given time. The schema looks ...
0
votes
1answer
41 views

Coffeescript + node.js : Unexpected token > (function arrow)

When I try to run the following coffeescript code: request = require('request') request('http://google.com', (error, response, body) -> if not error and response.statusCode is 200 ...
0
votes
1answer
27 views

Programmatically modify existing mongo document

Resolved, the issue was with the PUT request , I had to specify the header properly and go on with one at a time. curl -X PUT -H "Accept: application/json" -d "prenom=Maxwell" ...
0
votes
0answers
21 views

info: [APP config] Database initialized: MongoError: auth fails

I am trying to connect my node.js application on AppFog to mongodb and get this error: info: [APP config] Database initialized: MongoError: auth fails here is my code utils/dbconnect.coffee; # ...
0
votes
1answer
37 views

Environment detection: node.js or browser

I'm developping a JS-app that needs to work both on the client side and the server side (in Javascript on a browser and in Node.js), and I would like to be able to reuse the parts of the code that are ...
0
votes
0answers
6 views

hubot-scripts.json throwing error

I've successfully got Hubot running on my Windows server. Unfortunately, I'm trying to install some scripts, and added the following (as an example to my) hubot-scripts.json file: ...
1
vote
1answer
167 views

FineUploader onComplete not firing with CoffeeScript

I'm creating my first project with FineUploader using Node.JS, Express, and CoffeeScript. Everything is working perfectly so far, with one exception. After the upload completes, I am returning a JSON ...
0
votes
1answer
32 views

Trouble with JSON.parse

I have a string which I would like to turn into an object so I can pass it to mongoose string = "{setting: {foo: false}}" options = JSON.parse(string) but this is giving me this error ...
1
vote
2answers
53 views

Brunch Installing on ubuntu

I was going to use brunch to complile coffescript and less on ubuntu command : npm install brunch -b And I have some issues like following when install it. npm http 304 ...
1
vote
0answers
30 views

Running an open-source project on heroku

I am trying to run HabitRPG on Heroku because I don't have root access in the machines in my school's library to install the dependencies. The wiki to HabitRPG gives instructions on how to run it on ...
0
votes
1answer
31 views

Simple Q Promises Node Example

I'm trying to wrap my head around the Q library/promises in general so I can implement it in my node application, but I'm having trouble finding something concise and specific enough to quickly get ...
1
vote
1answer
38 views

Socket.io Fails On Every Emit

So I'm trying to move my project from development to production, hosted with modulus.io. The problem is that every time I try to emit or receive data between the server <-> client connection, the ...
10
votes
5answers
2k views

Client Side Dependency Management in CoffeeScript

What is the best way to do Dependency Management amongst CoffeeScript files if the resulting javascript files eventually need to be concatenated together for use on the client side? For server side ...
0
votes
1answer
25 views

templateData variables return undefined from helper function (docpad.coffee configuration file)

This is my configuration file. docpadConfig = { templateData: site: title: 'hello docpad' getTitle: -> @site.title getString: -> ...

1 2 3 4 5 39
15 30 50 per page