Questions tagged [derbyjs]

Derby.js is a full-stack JavaScript MVC framework with support for HTML templates, view bindings, model syncing, customizable persistence and conflict resolution.

Derby is a full-stack JavaScript MVC framework built on top of popular libraries, including Node.js, Express, Socket.IO, Browserify, Stylus, UglifyJS, MongoDB, and soon other popular databases and datastores. These libraries can also be used directly. The data synchronization layer, Racer, can be used separately. Other client libraries, such as jQuery, and other Node.js modules from npm work just as well along with Derby.

Features:

  • HTML templates: Handlebars-like templates are rendered into HTML on both the server and client. Because they render on the server, pages display immediately—even before any scripts are downloaded. Templates are mostly just HTML, so designers can understand and modify them.

  • View bindings: In addition to HTML rendering, templates specify live bindings between the view and model. When model data change, the view updates the properties, text, or HTML necessary to reflect the new data. When the user interacts with the page—such as editing the value of a text input—the model data updates.

  • Client and server routing: The same routes produce a single-page browser app and an Express server app. Links render instantly with push/pop state changes in modern browsers, while server rendering provides access to search engines and browsers without JavaScript.

  • Model syncing: Model changes are automatically synchronized with the server and all clients subscribed to the same data over Socket.IO.

  • Customizable persistence: Apps function fully with in-memory, dynamic models by default. Apps can also use the racer-db-mongo plugin to add MongoDB support with no change to the application code. Any changes to data made within the app are automatically persisted. Adding support for other databases is simple.

  • Conflict resolution: The server detects conflicts, enabling clients to respond instantly and work offline. Multiple powerful techniques for conflict resolution are included.

94 questions
18
votes
1 answer

nodeJS-Express or Meteor or Derby

Recently I'm interested in doing research about nodejs, nosql (mostly mongodb, redis) and decide to make a simple blog using those modern techs (which university professors wont teach me about). Through this progress I think I can improve my own…
xgenvn
  • 193
  • 1
  • 1
  • 7
14
votes
5 answers

"Make" command for Windows - possible options?

I am trying to setup Derby.js for Node on my Windows Machine. According to the Derby.js setup instructions, in order to use coffescript, I must do the following: $ cd ~ $ derby new --coffee first-project $ cd first-project $ make This worked, up…
JosephG
  • 3,111
  • 6
  • 33
  • 56
14
votes
7 answers

DerbyJS and Authentication

Does DerbyJS in current shape can implement authentication, if yes what's best way to do it? of not is their any work around to do it?
mabuzer
  • 6,497
  • 6
  • 35
  • 41
13
votes
1 answer

meteor vs derbyjs who is winning this battle?

Recently, I was looking for information about meteor and derbyjs and did not find too much about except an excellent derby's article that I would like to share with you. Besides all this I have very, very intrigued about both projects. I would…
andrescabana86
  • 1,778
  • 8
  • 30
  • 56
10
votes
3 answers

Is it already worth to give Derby.js or Meteor a shot for an app for production with authentication?

I started reading about Derby.js and Meteor to do some research on an project I'm working on. It uses a lot of real time functionalities so they both seem handy. But I have some major concerns and am wondering if it makes sense to use them at this…
Ole Spaarmann
  • 15,845
  • 27
  • 98
  • 160
7
votes
2 answers

Socket.IO - are the open connections a concern?

I'm currently working with DerbyJS because it fosters clean, DRY client/server code. The side-benefit (main reason why most people use the framework) is it uses Socket.IO to create realtime apps. In this case, I don't need realtime, but it is a…
lefnire
  • 2,524
  • 2
  • 26
  • 36
6
votes
1 answer

How to create server-side application logic on Racer / DerbyJS?

I'm learning the ins and outs of the new DerbyJS stack, and I can't find a way to put application logic server-side. The stated intent is that all code should be able to run both in the server, and in the client. However, I need certain data to be…
Luke Dennis
  • 14,212
  • 17
  • 56
  • 69
6
votes
3 answers

Derby.js (Racer) access control

I'm new in Derby.js environment, and as far as I see Racer is exposing all the data on client side. So, basically anybody could manipulate any data stored on server? Am I correct? Is there any way to manage access control?
Dmitry Demidenko
  • 3,427
  • 1
  • 22
  • 22
6
votes
1 answer

How can I efficiently load test a webapp with a headless browser?

I have experience with a few headless browsers, but only for testing and not load testing. What's the best way to launch 500-1000 websocket clients to load test the application? Is it as simple as just looping a bunch with a setTimeout that gets…
switz
  • 24,384
  • 25
  • 76
  • 101
5
votes
1 answer

Derby with a RESTful API

I'm very intrigued by derby and spent last night reading through the documentation. My current architectural thoughts are very much geared towards building a RESTful API which is used by the corresponding rich client application, or by anybody else…
Gevious
  • 3,214
  • 3
  • 21
  • 42
5
votes
2 answers

derbyjs for REST API

First of all, I have seen this question: How to best create a RESTful API in Node.js and it has pointed me towards mers, which has been a great help. But I have also been reading a lot of good things about derbyjs and it does look really…
Markus
  • 1,214
  • 1
  • 9
  • 27
4
votes
2 answers

How to integrate derby.js with express.js in node.js?

I am using express framework for my Node App. I need to have some real time updates like notifications in facebook. What I need is integrate derby.js(which is framework build on the top of express) only for real time notification triggering in…
Justin John
  • 9,223
  • 14
  • 70
  • 129
4
votes
1 answer

creating derbyjs app in windows

probably a stupidd question. I have installed node.js on my Windows 7 machine and and trying to install derbyjs. i ran the "npm install -g derby" command and everything seemed fine. Now when i try to create a new app via derby new --coffee…
Rishav Sharan
  • 2,763
  • 8
  • 39
  • 55
3
votes
2 answers

Installing project's dependencies globally and running the project without `node_modules/` — how?

I decided to try learning DerbyJS and this is my first acquaintance with NodeJS either. I create a new Node/Derby project with derby new foo. This also creates a node_modules/ folder which contains a copy of all packages the project depends on. The…
Andrey Mikhaylov - lolmaus
  • 23,107
  • 6
  • 84
  • 133
3
votes
3 answers

Derby.js - npm install derby successful, but derby command not found

I'm following the Derby.js getting started guide. I have run $ npm install -g derby and everything succeeds, but when I enter $ derby new app-name I get: -bash: derby: command not found I'm on Mac OS 10.8, Node v0.10.3, npm v1.2.17
user1113883
1
2 3 4 5 6 7