• Stars
    star
    283
  • Rank 146,066 (Top 3 %)
  • Language
    CoffeeScript
  • Created over 12 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Example applications for the Derby framework

Derby

The Derby MVC framework makes it easy to write realtime, collaborative applications that run in both Node.js and browsers.

See https://derbyjs.com/

Examples

Directory

https://directory.derbyjs.com/

Example of a typical application with a few routes. This is the best example to use as a starting point for writing an application in DerbyJS.

Hello

https://hello.derbyjs.com/

Minimal "Hello, world" example.

Chat

https://chat.derbyjs.com/lobby

A simple chat demo. Note that as you edit your name, it updates in realtime. Name changes also show up in the page title and other rooms. Check out the source in the examples directory to see how these bindings are created automatically.

Todos

https://todos.derbyjs.com/derby

The requisite MVC demo, but collaborative and realtime! Todo items are contenteditable fields with support for bold and italics.

Sink

https://sink.derbyjs.com/

A kitchen-sink style example with a bunch of random features. Largely used for testing.

Installing

To run these examples on your own machine, first install Node.js. You'll also need MongoDB installed and running.

Then, clone this repo from GitHub.

You can run each of the examples from their own directories:

$ cd ~/derby-examples/directory
$ node server.js

The examples written in CoffeeScript are meant to be run via the coffee command:

$ npm install -g coffeescript
$ cd ~/derby-examples/sink
$ coffee server.coffee

If you would like to run all of the examples at once you can do

cd ~/derby-examples
node server.js

If you run into an EMFILE error on Mac or Linux you can up your file limit with ulimit -n 2560

MIT License

Copyright (c) 2011 by Nate Smith

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

derby

MVC framework making it easy to write realtime, collaborative applications that run in both Node.js and browsers
TypeScript
4,725
star
2

racer

Realtime model synchronization engine for Node.js
TypeScript
1,186
star
3

arraydiff

Diff two arrays, finding inserts, removes, and moves
JavaScript
38
star
4

d-bootstrap

A Derby component library based on Twitter Bootstrap
JavaScript
30
star
5

derby-site

DerbyJs Site
JavaScript
28
star
6

multiplayernotepad

JavaScript
20
star
7

racer-examples

Example apps for Racer
CSS
18
star
8

derby-standalone

Client-side only version of Derby
HTML
15
star
9

html-util

HTML utilities for simple parsing and escaping
JavaScript
14
star
10

tracks

Shared browser and server routes built on Express
JavaScript
11
star
11

derby-templates

Parse JavaScript-like expressions for use in templates
JavaScript
8
star
12

racer-browserchannel

JavaScript
7
star
13

component-examples

listing of community built derby examples
CoffeeScript
7
star
14

derby-debug

Derby app plugin to add debugging utility functions
JavaScript
6
star
15

d-quill

Derby rich text editor component based on Quill
JavaScript
6
star
16

derby-parsing

HTML-based templating for Derby
JavaScript
5
star
17

derby-starter

A generic server for use with Derby apps
JavaScript
4
star
18

d-codemirror

derby component for live-bound CodeMirror
JavaScript
4
star
19

saddle

JavaScript
4
star
20

derby-stylus

Derby plugin to add stylus support
JavaScript
4
star
21

racer-websocket

Racer plugin for websockets
JavaScript
3
star
22

d-before-unload

Derby component to stop page from unloading when it has pending operations
JavaScript
2
star
23

racer-bundle

Create Browserify package for a Racer or Derby app
JavaScript
2
star
24

d-connection-alert

Connection alert Derby component
JavaScript
2
star
25

d-d3-barchart

a barchart component for Derby demonstrating a common pattern with d3.js
JavaScript
1
star
26

racer-logger

readable logging for derby applications
JavaScript
1
star
27

d-barchart-vanilla

a barchart component for Derby built without d3.js to illustrate a pattern
JavaScript
1
star
28

derby-less

Derby plugin to add Less support
JavaScript
1
star
29

derby-intl

Derby plugin for internationalization
JavaScript
1
star
30

derby-assets

Logos, colors, and other marketing assets for the Derby project
1
star
31

d-showdown

Derby component wrapping showdown (markdown renderer)
JavaScript
1
star