##Given Apache 2 and MySQL are already installed.
#Update MacPorts sudo port selfupdate;sudo port -u upgrade outdated
#Install PHP 5.4.* sudo port install php54 php54-apache2handler ##Activate Apache Module cd /opt/local/apache2/modules
| 'use strict'; | |
| // Neo4j configuration | |
| app.constant('NEO4J_USER', 'neo4j'); | |
| app.constant('NEO4J_PASSWORD', 'admin'); | |
| app.constant('NEO4J_URL', 'http://localhost:7474/db/data/transaction/commit'); |
##Given Apache 2 and MySQL are already installed.
#Update MacPorts sudo port selfupdate;sudo port -u upgrade outdated
#Install PHP 5.4.* sudo port install php54 php54-apache2handler ##Activate Apache Module cd /opt/local/apache2/modules
| var mongoose = require('mongoose') | |
| , Schema = mongoose.Schema; | |
| var db = mongoose.connect('mongodb://localhost/test'); | |
| var TestEmbedSchema = new Schema({ | |
| name : { type: String, index: true} | |
| }); | |
| var TestEmbed = mongoose.model('TestEmbed', TestEmbedSchema); |
| // Requires node v0.1.100 or a browser with console | |
| function newShape(x, y) { | |
| return { | |
| toString: function () { | |
| return 'Shape at ' + x + ', ' + y; | |
| } | |
| }; | |
| } |