Questions tagged [geddy]

Geddy is a simple, stuctured framework for node.js. Geddy is built on the same MVC principles that many popular frameworks are based on. Every Geddy app has its models, controllers, and views as well as config files and routes.

Template engine support

  • EJS
  • Jade
  • Handlebars
  • Mustache
  • Swig

Geddy's model layer have adapters for

  • Postgres
  • MySQL
  • SQLite
  • Riak
  • MongoDB
  • LevelDB
  • in-memory
  • Filesystem

Documentation

82 questions
1
vote
1 answer

Pass Post data to application.html.ejs in geddy nodejs

i m posting a form in geddy. i need to update my meta data according to posted data by the form, for this i have to pass post to <%= partial('layout_header', {post: post}); %>
1
vote
1 answer

Trouble with script src attribute in Geddy application

I am new to Geddy and I am having trouble getting the HTML script tag to pull in external .js files. My file hierarchy looks like this: Application Models Controllers Views ExternalJS file.js In one of my views, I would like to include…
1
vote
1 answer

How to run express and geddy apps on the same port?

There is an existing node.js application implemented using geddy framework, it is started by Heroku's foreman like so: web: geddy I am working on making it into a Heroku add-on. Heroku has a way to auto-generate the skeleton code necessary for an…
SergeyB
  • 9,478
  • 4
  • 33
  • 47
1
vote
1 answer

Is there a way to define a virtual field in Geddy model?

Is it possible to define a temp field / virtual field in geddy model? Like in the form I've use the input fields tmpFirstName and tmpLastName but when submitted I want to store the information in a single column name. Thanks
ginad
  • 1,863
  • 2
  • 27
  • 42
1
vote
1 answer

MongoDB with Geddy

I'd like to use MongoDB with Geddy. I've edited my "production.js" file but it seems not working... I don't remember my MondoDB username and password... I get this error : Error: 500 Internal Server Error production.js : var config = { …
tonymx227
  • 5,293
  • 16
  • 48
  • 91
1
vote
1 answer

How do I use Geddy Model Events

I'm new with geddy and I'm getting confuse on how to use the model events. My model has a slug field and I want to generate the slug (base on the name they entered) before I save any records. In other words how do I do this in geddy? rails…
ginad
  • 1,863
  • 2
  • 27
  • 42
1
vote
1 answer

Geddy - Run additional process - Twitter Stream

I'm curious if anyone has any experience when running Geddy, if you can also run an additional resource, such as: https://github.com/AvianFlu/ntwitter Would it be possible if you were to include the above via the package.json and reference it like:…
Whnunlife
  • 179
  • 1
  • 3
  • 13
1
vote
1 answer

Unable to output custom validation error messages with geddy

I'm using the geddy framework and following the validation examples. In my User model I have the following custom validation rule: this.validatesWithFunction('password', function(val) { var re = /^[a-z0-9]+$/i; return re.test(val) },…
timstermatic
  • 1,710
  • 14
  • 32
1
vote
2 answers

Unit Test Framework For Geddy MVC on Node.js

I'm running Geddy MVC Framework on Node.js on Heroku right now with a Postgres database. I can't seem to find any unit test frameworks for node.js that support Geddy. I have tried nodeunit, jasmine and a couple others but none seem to work with…
Evan Layman
  • 3,691
  • 9
  • 31
  • 48
1
vote
1 answer

Geddy - create new item

I am an absolute beginner in node.js and geddy. I've followed a few tutorials and now I try to write something similar for my purposes. When I try to create a new item, though, I get the following message: …
1
vote
0 answers

Geddy JS overwrites custom id

I am running an app with Geddy JS (v 0.6.18) with a Mongo DB - Before saving models I am setting a custom id property. Nevertheless, Geddy JS (or Mongo DB?) seems to overwrite this custom id property with a String looking like:…
Felix
  • 4,213
  • 1
  • 21
  • 27
1
vote
2 answers

GeddyJs (NodeJs framework) deploying to heroku cedar stack crashes

I have a geddyJs app that is crashing when starting.. the crash log is: 2013-02-14T04:04:19+00:00 heroku[run.4236]: Starting process with command `geddy -e production` 2013-02-14T04:04:19+00:00 app[web.1]: 2013-02-14T04:04:19+00:00 app[web.1]:…
NDBoost
  • 10,184
  • 6
  • 53
  • 73
1
vote
2 answers

Geddy.js - rendering partial views without layout, is it possible?

Is it possible to render a partial view in Geddy.js without rendering the entire HTML page layout? self.respond(model, {layout: false, template: 'app/views/users/_list'}); I've tried to do this with no success. (Although the documentation says:…
1
vote
2 answers

relativeTime() utility undefined in ejs page

Using GeddyJS I have created a web app. I have table with a datetime that I want to be relative ("5 minutes since..."). However the function in the GeddyJS docs isn't available when I use it in my page. it says…
cmp
  • 1,543
  • 2
  • 11
  • 18
1
vote
1 answer

GeddyJS & socket.io: catching and emitting events from server side

i would like to use socket.io along with Geddy. I just followed the instructions in the below link: https://github.com/mde/geddy/wiki/Getting-started-with-Geddy,-Socket.io,-and-Authentication Suggest me how to catch the 'connection' event on…