Questions tagged [compoundjs]

CompoundJS is the Node.JS MVC framework based on ExpressJS.

CompoundJS is the Node.JS MVC framework based on ExpressJS, fully ExpressJS-compatible. It allows you to build well-structured web applications.

The main objective of the framework — web development without pain.

Guides

80 questions
1
vote
1 answer

Compound JS load configuration from DB on startup

I'm trying to use Compound JS and want to load on startup some values from DB and store them in global variables shared across all sessions. How can I do it?
xaxa
  • 1,057
  • 1
  • 24
  • 53
1
vote
1 answer

Enumerating types for a given column for a model object

I have an obect called "Task" and each task has a type. In my database design without ORM, i would have a table called TaskTypes and Task table would have foreign key to the TaskTypes table where we define Tasks.. Is there a way to handle this…
Tolga E
  • 12,188
  • 15
  • 49
  • 61
1
vote
1 answer

compoundjs mocha tests failing on ubuntu server

My tests run fine in my OS X environment, but when I run them on my ubuntu (EC2) server, the tests fail with: ✖ 1 of 40 tests failed: 1) AccountController "before each" hook: Error: done() invoked with non-Error: [object Object] at…
Michael
  • 891
  • 2
  • 16
  • 32
1
vote
1 answer

Model seems to have no information with CompoundJS and MongoDB

I'm using CompoundJS and MongoDB (juggling-mongodb). This is the code I have: schema.js: var User = describe('User', function() { property('_id', Number, { index: true }); property('name', String); property('email', String); property('password',…
fmvilas
  • 56
  • 1
  • 6
1
vote
1 answer

Upload-Progress in compoundjs/express with bodyParser({defer:true}) fails

I try to figure out how to use the defer-property of the bodyParser used in express (and compoundjs) correctly. The goal is to get access to the event-property which should be possible duo passing the defer-property to the bodyParser. What happens…
Fuzzyma
  • 7,619
  • 6
  • 28
  • 60
1
vote
1 answer

Why are some many node.js web frameworks building based on Express? Why Does Express do not implement those features?

I am a newcomer to node.js techique stack. I found some many articles are introducing node.js and Express. I know Express is a good web framework including template engine, routing, etc. It is popular and active framework. There are some point I am…
Henry Leu
  • 2,184
  • 4
  • 22
  • 34
1
vote
1 answer

What is the difference between "describe" and "schema.define"?

As I've progressed thru the world of CompoundJS I've came across two ways of defining a schema: First: var Product = describe('Product', function () { property('upc', String); property('name', String); set('restPath',…
Eran Betzalel
  • 4,105
  • 3
  • 38
  • 66
1
vote
1 answer

How to mock session Object in compoundjs application in node.js

I have a compound js application in node.js. For some actions i have a filter checking the existence of "session.user" value which gets populated only after successful authentication. But whenever writing the unit test cases for such actions, the…
1
vote
1 answer

Update properties in controller with Compound.js

I try to create a blog using Compound.js. I have two tables, "Category" and "Post", in each I have the date property, but when I generate the tables, I got a form with an input for the date property in each "new" view... I wanna update the date…
tonymx227
  • 5,293
  • 16
  • 48
  • 91
1
vote
1 answer

Customize validation message in node.js

I'm new to Node.js and I had a problem in customize validation message in node.js.I created a simple app with Compound JS using CRUD operation. In my app there is a field called "id". The "id" field only accept integer value only. Then I validate…
Jetson John
  • 3,759
  • 8
  • 39
  • 53
1
vote
1 answer

Spelling error issue in routes while scaffolding Compound js

I'm new with node and compound. While i tried to scaffold compound g crud leaveApplication leave_code:string description:string applicable:string carry_forward:boolean limit_type:boolean lop:boolean od:boolean co:boolean leave_revision:boolean…
Okky
  • 10,338
  • 15
  • 75
  • 122
1
vote
1 answer

compound server 8888 fails with "failed to connect to [localhost:27017]"

I am trying to start a project with nodejs on a windows machine. I know that windows isn't the right environment but that's what I use! I run into an error while starting my server with compound server 8888. I generated all files through compound…
Fuzzyma
  • 7,619
  • 6
  • 28
  • 60
1
vote
1 answer

Issue in compoundjs "Adapter is not define'

i am new to compoundJs, developing sample application while am running the application it shows me Adapter not define. it wants to install npm install jugglingdb-mongoose while am installing npm it shows 'jugglingdb-mongoose' is not in the…
God
  • 674
  • 2
  • 6
  • 31
1
vote
2 answers

In CompoundJS how does database seeding work?

I see that there is a folder for database seeds and a command for it but I couldn't find any documentation on how it works. Can someone help?
MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460
0
votes
1 answer

compoundjs support both ssl and normal http

I needed to use SSL on my site in certain situations, I have followed the example in the readme require('compound').createServer({ key: fs.readFileSync('/tmp/tls.key').toString(), cert: fs.readFileSync('/tmp/tls.cert').toString() }); My…
user254694
  • 1,461
  • 2
  • 23
  • 46