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

securing the source code in a node-webkit desktop application

first things first , i have seen nwsnapshot. and its not helping. i am building an inventory management system as a desktop app using node-webkit . the project being built is using compoundjs (mvc javascript library). which have a definite folder…
9
votes
7 answers

Error: Cannot find module 'jade~'

Im new to node js. I used Compound Js to create a crud operation. The app was working fine till i tried to alert a value, after that I'm getting the error 500 Error: Cannot find module 'jade~' at Function.Module._resolveFilename…
Okky
  • 10,338
  • 15
  • 75
  • 122
6
votes
2 answers

Node js, no response returned while using connect-memcached

Hi I'm using compoundjs and connect-memcached. Below is the content in my envirionment.js file: module.exports = function (compound) { var express = require('express'); var MemcachedStore = require('connect-memcached')(express); var app =…
senthil
  • 1,307
  • 1
  • 11
  • 23
5
votes
1 answer

Compoundjs fails to run with jugglingdb-mysql

Trying to test compoundjs with mysql but it fails. My system is Debian 7 with following versions of nodejs & npm $ node -v v0.10.13 $ npm -v 1.3.4 Here is how I installed compoundjs sudo npm install -g compound sudo npm install -g jugglingdb…
Manraj Singh
  • 143
  • 4
5
votes
1 answer

One to Many relationship in CompoundJS

I'm new to CompoundJS and I had a problem in setting up a one to many relationsip with jugglingDB.I'm using MySQL as database. I have set up two model Book and Author. Book has many authors. This is my schema.js (db/schema.js): var Book =…
Jetson John
  • 3,759
  • 8
  • 39
  • 53
4
votes
1 answer

How to setup Mocha tests with Node.js and Passport

In an application built with Node.js (CompoundJS + PassportJS), how can the Mocha tests be run on the controllers that are locked down and require login? I have tried using Superagent but am not having much luck and to use it the server needs to be…
Michael
  • 891
  • 2
  • 16
  • 32
4
votes
0 answers

Does compoundjs-passport always expects user to be saved to the database after authentication?

I am developing a simple user crud module using compoundjs, compound-passport and passport-facebook. It used the default approach to generate a crud and it works fine if I want to save it to the database but I want to save it to a session here and…
amit1310
  • 8,825
  • 2
  • 12
  • 12
4
votes
1 answer

Using CompoundJs with Passport

I'm trying to use Passport with Compound Js. I've configured the passport in an initialization file. as below var passport = require('passport') , LocalStrategy = require('passport-local').Strategy; passport.use(new LocalStrategy({usernameField:…
senthil
  • 1,307
  • 1
  • 11
  • 23
4
votes
0 answers

No response after database-access in jugglingdb

I try to use my compound.js-application as a (transparent) proxy-server. When a user tries to request a external website, the application will check, if the user with that ip-address was authenticated before. If so, the external site will be shown,…
David Geh
  • 307
  • 1
  • 2
  • 12
3
votes
2 answers

MongooseJS modify document during pre hook

I'm having some issues with mongoose. My goal is that during pre-save, I would be able to modify the object, doing things like splitting the tags if needed, or in another case calculating the summation of a sub-document durations and update it…
user1363145
  • 107
  • 1
  • 2
  • 6
3
votes
1 answer

Reading Environment specific variables from test file Compound.js

I'm working on a compound js app. In environments/test.js I have exported a variable as follows: app.host = "http://mysite.com" When I run the app as below: NODE_ENV=test node . I could access the value of host by giving app.host. Everything is…
senthil
  • 1,307
  • 1
  • 11
  • 23
3
votes
1 answer

What is the proper way to call 'render' after all async executions in controller?

So here we have some application based on CompoundJS framework and some controller on it: load('application'); action('index', function () { someMethodWithAsyncCallback({}, function () { /* async preparing some params for template */ …
FelikZ
  • 2,976
  • 4
  • 32
  • 41
2
votes
1 answer

How do I get the native mongodb client from a jugglingdb adapter during compoundjs initialization?

I'm working with compoundjs and using the mongodb adapter of jugglingdb. I've been retrieving and reusing the native mongodb client in the controllers by doing the following: var db = compound.orm._schemas[0].client; This works great, as I am able…
matth
  • 6,112
  • 4
  • 37
  • 43
2
votes
1 answer

Compound js log user's actions

I need to find a way to log user's activities in my Compound.JS + MongoDB app. It would be great to create a table and insert information like who (what login) updated/created/deleted which record in what table, what fields were changed from what to…
xaxa
  • 1,057
  • 1
  • 24
  • 53
2
votes
3 answers

How to run multiple "Applications" under one compoundJS instance?

I've been using nodeJS + expressJS for several years now developing a custom Application Platform for our organization. Our central framework provides a common set of services (authentication, language, administration, etc...) for any installed…
user1200245
  • 93
  • 1
  • 6
1
2 3 4 5 6