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
3 answers

How to use node.js/geddy with cookie

I am working on node.js's framework geddy. Getting lots of problems in doing small things.I am not getting how cookies/session/mysql queries work in node.js. I am even not getting decent document.I am fine with decent document link or explaination…
Debugger
  • 544
  • 1
  • 9
  • 25
1
vote
1 answer

geddy command breaks after creating geddy app

I'm following the geddy tutorial. I install geddy & jake using npm, create the app, cd into the folder that is created, and run the geddy command. But I get an error when running the geddy command, here's my full output: martin@crunchbang:~/code$…
Martinffx
  • 2,426
  • 4
  • 33
  • 60
1
vote
1 answer

Node.js with Geddy: Does geddy.string.uuid(x) make sure the string is unique?

I am following a tutorial on making a simple app with Node.js and Geddy. For each new entry it sets the entry id with geddy.string.uuid(10) and doesn't seem to run any other checks. My concern is when creating a new entry this could generate the…
gokujou
  • 1,482
  • 3
  • 15
  • 27
0
votes
2 answers

node.js (core / framework)

I have just completed reading & implementing the awesome "The Node Beginner Book" by Manuel Kiessling. Didn't find a better resource on node.js for a newbie like me. Now I need to make a full fledged application (something like a restaurant review…
Nirav Gandhi
  • 1,945
  • 1
  • 23
  • 32
0
votes
1 answer

have an issue with undefined function with nodejs and geddy

ok its gose like this i have this code: var PMP_Abstract = new JS.Class({}); var PMP = new JS.Singleton(PMP_Abstract,{ //on Application Start initialize: function() { } }); in short here i want put the main logic but... this just…
Sivan Wolberg
  • 348
  • 2
  • 6
  • 18
0
votes
2 answers

SQLite model adapter for Geddy or Express

Can someone help me out figuring how to write a model adapter for geddyjs or expressjs web frameworks for NodeJS? I'm following this tutorial but they persist data in memory, I want to know how to do it with sqlite since I'm starting to get to know…
fcastellanos
  • 263
  • 2
  • 13
0
votes
2 answers

Mongolab MongoError: auth failed error

I am using heroku for hosting my geddy app. The mongolab recently upgrade the version to mongo 3.x I am using mongodb package 2.0.45 version which is latest. since the upgrade my app is throwing error of MongoError: auth failed error.
0
votes
1 answer

Custom geddy mongodb adaptor in mongolab uri

I want to use custom geddy adapter var mongo = geddy.model.adapters.mongo.client; var db = mongo.db('db_name', 27017,); var tests = db.collection('tests'); tests.find({}).toArray(function(err, p){ console.log(err); …
Devesh
  • 85
  • 9
0
votes
1 answer

Code in Model or Controller

This is a design pattern question for MVC models. I'm using GeddyJs (for Node.js), but it's the same pattern as Sails.js and so on. Sometimes I get to a point, where I don't know if I should place the code into the Controller, or into the Model. For…
Ivan Seidel
  • 2,394
  • 5
  • 32
  • 49
0
votes
1 answer

GeddyJS (Node.js+Socket.io framework) realtime option

I have a Geddy app that has some realtime models (I remember using -rt to generate some models), and I'd like to revisit the realtime-ness of my Geddy app. I don't need my models to be updated automatically (I'm not sharing models with the client;…
John Doe
  • 1,005
  • 2
  • 8
  • 23
0
votes
1 answer

How do I create a global variable in Geddy

I'm like to define a global variable box that is available in all controllers across my app in Geddy. How would one go about doing this?
user623990
0
votes
1 answer

When scaffolding in Geddy, what is the difference between a data-type "default" and not putting a data type?

For example: geddy gen scaffold person name:default and geddy gen scaffold person name both create a property "name" with data-type "string." Is there any difference between these two syntaxes?
mravca
  • 699
  • 1
  • 6
  • 11
0
votes
1 answer

Geddy + node.js + passport-facebook + cant get email profile fields

i am using module for this "passport": "0.1.x", "passport-facebook": "0.1.x", Showing profile output in console { provider: 'facebook', id: '100003558512345', username: 'testname', gender: 'male', emails: [ { value: undefined }…
Dev
  • 129
  • 9
0
votes
1 answer

Geddy Save User

I am currently involved helping out on a project which involves using the Geddy js framework, which it is my first time using. I am currently trying to fix the create method inside a model for users. Here is the code below: this.create = function…
koramaiku
  • 358
  • 2
  • 5
  • 22
0
votes
1 answer

Router with base64 generated param

I am trying to send a parameter after convert it to the base 64 the definition of the geddy.js route : router.get(routing_prefix+'/gogetthecart/:data').to('Main.gogetthecart'); In the client side, javascript, I generate a base64 json data var…
Hamza MHIRA
  • 157
  • 1
  • 11