This file contains hidden or 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
| These are instructions for setting up Circle Blvd on an Amazon EC2 instance running Ubuntu, | |
| or really any Ubuntu server you are happy with. | |
| It assumes the default user account is 'ubuntu' (created by the AMI). | |
| Directions: | |
| 0. Create an EC2 instance using Amazon Web Services | |
| --> AMI: Ubuntu Server 14 (free tier) | |
| --> Security group: Add HTTP, HTTPS, and SSH rules |
This file contains hidden or 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
| 1. Prerequisites (see below) | |
| 2. Set up the server | |
| 3. Set up the client |
This file contains hidden or 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
| // Most of the times an aggregation function is needed, | |
| // it is a simple count or sum, which are supported by | |
| // built-in functions of both CouchDB and MongoDB. | |
| // | |
| // This is a CouchDB design document: | |
| var circlesDesignDoc = { | |
| url: '_design/circles', | |
| body: { | |
| version: "1.0.1", |
This file contains hidden or 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
| To add the proper permissions to a Node.js folder in IIS, give the following object write access: | |
| IIS AppPool\<app identity> |
This file contains hidden or 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
| How to move Circle Blvd to a new server, a rough guide: | |
| 1. Setup CouchDB and Node | |
| 2. Use ssh to replicate. Something like this: | |
| $ curl -X POST http://localhost:5984/_replicate -H 'Content-Type: application/json' -d '{"source":"http://localhost:9000/circle-blvd","target":"http://localhost:9001/circle-blvd","create_target":true}' | |
| $ curl -X POST http://localhost:5984/_replicate -H 'Content-Type: application/json' -d '{"source":"http://localhost:9000/circle-blvd-sessions","target":"http://localhost:9001/circle-blvd-sessions","create_target":true}' | |
| 3. Copy the SSL certificates |
This file contains hidden or 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
| function(doc) { | |
| if (doc.type | |
| && doc.type === "archive" | |
| && doc.summary | |
| && doc.summary.indexOf("Apply to evaluate Circle Blvd") >= 0) { | |
| emit(doc.timestamp, doc); | |
| } | |
| } |
This file contains hidden or 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
| // Make a custom "invalid" class that goes away | |
| // when an element is focused. | |
| var setupValidation = function(selector) { | |
| $(selector).blur(function() { | |
| var elm = $(this); | |
| if (isInvalid(elm)) { | |
| elm.addClass("invalid"); | |
| } | |
| }); |
This file contains hidden or 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
| <!doctype html> | |
| <html ng-app="project"> | |
| <head> | |
| <title>Angular: Service and template example</title> | |
| <script src="http://code.angularjs.org/angular-1.0.1.js"></script> | |
| <script src="script.js"></script> | |
| </head> | |
| <body> | |
| <div ng-view></div> | |
| </body> |
This file contains hidden or 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
| This is one way to get mod_mono up with OS X (Lion), for experienced computer users, | |
| but inexperienced Apache users. Note, this is just if you're trying to get one project | |
| up and running quickly: | |
| 1. Apache is already installed. Don't worry about it. | |
| 2. Get mono for OS X: http://www.go-mono.com/mono-downloads/ (the SDK) | |
| 3. Get the latest source for mono_mod: http://download.mono-project.com/sources/mod_mono/ | |
| Extract the tar ball, go into the folder, and do this: | |
| $ ./configure prefix=/Library/Frameworks/Mono.framework/Versions/2.10.9 --with-apxs=/usr/sbin/apxs --with-apr-config=/usr/bin/apr-1-config |
OlderNewer