This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = (grunt) -> | |
grunt.initConfig | |
coffee: | |
src: | |
options: | |
bare: true | |
sourceMap: true | |
expand: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var racerAccess = require('racer-access'); | |
derby.use(racerAccess); | |
var store = derby.createStore(); | |
// This is current racer-access api | |
store.allow('change', 'users', function(docName, changeTo, snapshotData, connectSession) { | |
return; | |
}); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
derby = require 'derby' | |
auth = require '../../app/auth' | |
creation = require '../../app/crud/creation' | |
schemas = require '../../app/schemas' | |
settings = require '../../app/settings' | |
validation = require './validation' | |
util = require '../../app/util' | |
module.exports = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALLOWED_COLLECTIONS = [ | |
'auths' # Private user data | |
] | |
store.allow 'create', 'auths', (docId, newDoc, session) -> | |
console.log '[Auths] CREATE' | |
undefined | |
store.allow 'all', 'auths.*', (docId, relPath, opData, docBeingUpdated, session) -> | |
console.log '[Auths] CHANGE' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# ppa | |
# node.js | |
add-apt-repository -y ppa:chris-lea/node.js | |
# mongodb | |
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 | |
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/10gen.list | |
# redis | |
add-apt-repository -y ppa:chris-lea/redis-server |
NewerOlder