Questions tagged [kraken.js]

The kraken suite is a secure and scalable layer that extends express by providing structure and convention.

The kraken suite is a secure and scalable layer that extends express by providing structure and convention. Kraken is the glue to your open source. It sits on top of grunt and express, but offers you a more robust feature set in a web application framework. The benefits include support for externalized content, localization, compile-on-the-fly editing, environment-based configuration, baked-in application security and more.

  1. Install the generator

    sudo npm install -g generator-kraken

  2. Create a project

    yo kraken

  3. Start your server

    npm start

  4. Your kraken application will start up on port 8000. You can visit it at http://localhost:8000. If all goes well, your very polite application will say hello.

Important Links:

120 questions
42
votes
2 answers

Queries hang when using mongoose.createConnection() vs mongoose.connect()

Works: var mongoose = require('mongoose'); var db = function() { return { config: function(conf) { mongoose.connect('mongodb://' + conf.host + '/' + conf.database); var db = mongoose.connection; db.on('error',…
binarygiant
  • 6,362
  • 10
  • 50
  • 73
6
votes
1 answer

Multipart/form-data with arrays

I have a simple form:
Kpaekn
  • 339
  • 3
  • 9
5
votes
2 answers

How to deploy KrakenJs on my production server

I would like to deploy my KrakenJS project. I used grunt to build the project and got the output in .build directory. I am not really sure what to do from here. Should I package the full project and run it on the server using the npm start or is…
Biri
  • 189
  • 9
4
votes
0 answers

How to set up mysql and Sequelize in Kraken.js

I am trying to learn how to work with KrakenJs and use mysql for my database. but I have not been able to find anything on line , this is what i have come up with so far I have created a folder called lib and I want to have my connection file db.js…
CYBERSIX
  • 347
  • 1
  • 7
  • 19
4
votes
1 answer

Wrap nodejs application with Phonegap

I would like to wrap my nodejs application using phonegap. I built my nodejs application using krakenjs and I don't really know which files should go into phonegap. Nodejs is the server side but it serves all the static files. In my public folder…
Biri
  • 189
  • 9
3
votes
1 answer

Python: How to set ticker in krakenex for fetching historical OHLC-data?

I am trying to load OHLC-data form Kraken with the API krakenex for my research project. But I can't figure out my mistake. I am using a modified version of https://github.com/veox/python3-krakenex/blob/master/examples/trades-history.py in python…
3
votes
3 answers

CSRF token mismatch for ajax post using nodejs express

Environment: express 4, jquery, krakenjs, font-awesome In controllers/products/index.js module.exports = function (router) { router.post('/add',function(req,res){ // do something }); }; In the html file, users click the icon and add…
tony.0919
  • 1,145
  • 5
  • 16
  • 27
3
votes
4 answers

How to use dynamic keys in dust to map content in properties file

I am getting a JSON from contollers and on the basisi of value of this JSON i want to set key in my dust file, so that this key will access data from properties file. For example I am getting "step" from controllers. { step: step1 } I…
user3386363
  • 93
  • 1
  • 8
3
votes
3 answers

NTVS not running node service on the port I've specified

Port 8010 is specified in app.json, running node index.js starts the service on port 8010. NTVS starts it on a randomly assigned port each time I start the service. I have little experience with it, but have recently been give an large…
Binary Worrier
  • 50,774
  • 20
  • 136
  • 184
3
votes
2 answers

How to get a config from within a controller (require it from a controller)?

I use totally default Kraken.js app. I want to define some configs for .dust templates (select options) in a config.js file. Then I need to get these configs in my controller. How may I get a config in a controller? Here is an example code: 'use…
Green
  • 28,742
  • 61
  • 158
  • 247
3
votes
2 answers

Using dustjs-helpers with Kraken js

I created a project using Kraken 1.0.1 with yo kraken, with template engine dustjs, but I can not use functions dustjs-helpers. My config.json: "express": { "view cache": false, "view engine": "dust", "views":…
Nickolas
  • 101
  • 6
3
votes
0 answers

How to access the Express logger in Kraken

I'd like to set up Winston logging in my Kraken-based app, but I am not sure how to get a handle on the express logger object to set up the stream for it. index.js: // enable web server logging; pipe those log messages through winston var…
binarygiant
  • 6,362
  • 10
  • 50
  • 73
3
votes
1 answer

Loading socket.io as a module in KrakenJS/Express

I'm trying to seperate my socket.io code in my app to it's own file like the answer in this thread: Separating file server and socket.io logic in node.js However, the socket.io code never runs and will not start to listen and I don't really…
Ms01
  • 4,420
  • 9
  • 48
  • 80
3
votes
1 answer

Node JS: How to set template engine in krakenjs

I don't know how to set jade template in kraken js, can anyone help me please.
phuongnl
  • 33
  • 6
2
votes
2 answers

Extend Sails built in security with lusca

How can I extend the Sails built in security? For example how can I implement lusca (module from Kraken) in Sails? What are other alternate ways of extending the built in security in Sails?
Cirakuze
  • 35
  • 6
1
2 3 4 5 6 7 8