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
// from Horofox in #node.js | |
var mongoose = require('mongoose'); | |
var db = mongoose.connect('mongodb://localhost/mydb'); | |
function allowPosts(mongoose) { | |
var Schema = mongoose.Schema; | |
var Posts = new Schema({ | |
name : String, | |
subject: String, | |
comment : String, |
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
Install Groovy: | |
$ sudo mv groovy-1.x.x /usr/share | |
$ cd /usr/share | |
$ sudo chmod 0755 groovy-1.x.x/bin/* | |
$ sudo ln -s groovy-1.x.x groovy | |
Install Grails: | |
$ sudo mv grails-1.x.x /usr/share |