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
0
votes
1 answer

Using supertest to check didFlash after a redirect

I'm trying to test what happens when the user destroy callback receives an error for the user controller. When destroy receives an error, it does the following: flash('error', 'Can not destroy user'); redirect(path_to.users); This is the test so…
matth
  • 6,112
  • 4
  • 37
  • 43
0
votes
2 answers

Flash error from an ajax request in compoundjs

I am trying to use flash('error', 'error text') to alert the webpage that an error has occurred via an ajax request. The ajax request hits an action where some database work is involved, and an error could be…
matth
  • 6,112
  • 4
  • 37
  • 43
0
votes
1 answer

How do you access the built in Compoundjs helper methods from a noeval controller?

How do you access the built in Compoundjs helper methods from a noeval controller? From an eval'd controller the helper functions seem to get loaded automatically and they are just accessible by doing something like…
Calvin Alvin
  • 2,448
  • 2
  • 16
  • 15
0
votes
2 answers

CompoundJS and Jade templates

I'm using "Jade" view engine with CompoundJS, however it doesn't use the proper Jade workflow when I call the render() method within a controller (e.g. its always rendering the same layout, yielding the inner template as the body parameter of the…
Mifkata
  • 11
  • 2
0
votes
1 answer

benefits of eval vs noeval in compoundjs

Does anyone have any experience using eval vs noeval generated controllers with compoundjs? I have been using mostly the standard generated controllers without noeval for starting points with compound apps. A question came up today about the…
Michael
  • 891
  • 2
  • 16
  • 32
0
votes
1 answer

Object is immutable in Coffeescript?

c.models.car.findOne where: {id: 1}, (err, car)-> car['seat'] = 1 #seat is not originally in the car object but I would like to add it car['color'] = 'red' #color is originally in car and is changed console.log car The issue is that…
Alexis
  • 23,545
  • 19
  • 104
  • 143
0
votes
0 answers

Describe relations with CompoundJS

I have an issue with CompoundJS and the models relations. I try to make a relation between Creation and Photo, it works because I'm able to see "creationId" in the Photo table. But, now I'd like to get all the photos of each creation in a view I use…
tonymx227
  • 5,293
  • 16
  • 48
  • 91
0
votes
3 answers

How to use jquery with CompoundJS

I want to use jquery at server side with node.js mvc framework CompundJS. I want to use jquery ($) in compundjs view. Can someone please tell me how to set up jquery in compundjs for that? I have installed jQuery using "npm install". I want to use…
Sachindra
  • 2,052
  • 4
  • 23
  • 29
0
votes
1 answer

tests in nodejs with compoundjs and mocha

I have created from scratch scaffolded compoundjs app using: compound init test_app && cd test_app Than compound g crud user id name password created:date Than npm test which runs: ./node_modules/.bin/mocha --include test/init.js…
Michael
  • 891
  • 2
  • 16
  • 32
0
votes
1 answer

How to run tests in node.js with compoundjs

I am trying to figure out how to run tests in compound. When i run npm test I receive the following error. describe('AccountController', function() { ^ ReferenceError: describe is not defined at Object.
Michael
  • 891
  • 2
  • 16
  • 32
0
votes
1 answer

Install with npm and run command for Jam and Compound.js on OSX 10.8.3 Mountain Lion

When I run installation with npm on OSX 10.8.3 for jam (npm install jam -g) and compound (npm install compound -g), the installation work well and all files go to /usr/local/share/npm/lib/node_modules/ as expected. But the problem is I can't use the…
Val Entin
  • 953
  • 10
  • 18
0
votes
2 answers

using Blanket.js for a compoundjs app to generate coverage report

I have compoundjs application in which I have used the scaffold generator to generate controller and its test cases. The test cases are running correctly. But I need to generate the code coverage report for the same. I am trying to use blanket.js…
0
votes
1 answer

npm test for compoundjs application

I have a compound js application. I only generated scaffold using compound g scaffold user name surname This command also created test/controllers/users-controllers-test.js file. I have tried ruuning this test as "npm test". But on windows, it gave…
0
votes
1 answer

Using compound, I got an error on update when using validatesPresenceOf

I'm creating an app with compound and mongodb. Compound use jugglingdb and jugglingdb-mongodb to connect to mongodb. I generated a crud for a client using the scaffolding of compound. Then, I added Client.validatesPresenceOf('name'); to…
Camilo
  • 2,844
  • 2
  • 29
  • 44
0
votes
1 answer

Trying to define an asset compiler in Compoundjs and getting undefined method error

I'm trying to define an asset compiler according to the documentationhttp://compoundjs.com/docs/#asset-compiler-adding-your-own-compiler, however, I keep getting an error: app.use(compound.assetsCompiler.add('scss', { …
JaredMcAteer
  • 21,688
  • 5
  • 49
  • 65