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
{ | |
"nodes": { | |
"apps": { | |
":node": "ApplicationServer-201", | |
":ip": "192.168.33.21", | |
":host": "apps.server-201", | |
"ports": [ | |
{ | |
":host": 2201, | |
":guest": 22, |
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
{ | |
"chef": { | |
":chef_server_url": "https://api.opscode.com/organizations/my-organization", | |
":client_key_path": "/etc/chef/my-client.pem", | |
":environment": "my-environment", | |
":provisioning_path": "/etc/chef", | |
":validation_client_name": "my-client", | |
":validation_key_path": "~/.chef/my-client.pem" | |
} | |
} |
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
start mongod # starts mongod in a separate window | |
mongo # starts interactive MongoDB Shell for remaining commands | |
# tip: once the mongo shell has started, you can copy and paste | |
# the commands below into the shell, all at once | |
use meanstack-test // creates database if it does not exist | |
db.components.insert({ "component": "mongod", | |
"description": "core database process" }) | |
db.components.insert({ "component": "mongos", | |
"description": "controller and query router for sharded clusters" }) |
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 meanstack-data-samples project | |
git clone https://github.com/garystafford/meanstack-data-samples.git | |
cd meanstack-data-samples | |
npm install | |
bower install | |
mongoimport --db meanstack-$NODE_ENV --collection components components.json --drop # Unix | |
# mongoimport --db meanstack-%NODE_ENV% --collection components components.json --drop # Windows | |
grunt test | |
grunt server |
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
REM cofirm the path to Chrome, change value if necessary | |
setx /m NODE_ENV "test" | |
setx /m PORT "3000" | |
setx /m CHROME_BIN "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" |
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
############################################################### | |
# Author: Gary A. Stafford | |
# Revised: 2014-05-29 | |
# Create new local User and Group | |
############################################################### | |
############################################################### | |
# Main variables (Change these!) |
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
# Run script 3 times because of the deeply nested variables | |
# PROXY_USERNAME is the username used to connect to proxy. | |
# May be different than the existing USERNAME. | |
# USERNAME is the account you logged into VM with, | |
# like 'Administrator', which may not have access through proxy | |
# Primary variables (CHANGE THESE FIRST!) | |
setx PROXY_HOSTNAME my_domain.com | |
setx PROXY_USERNAME my_user | |
setx PROXY_PASSWORD my_password |
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
// Karma configuration | |
module.exports = function (config) { | |
// Determines Karma's browser choice based on environment | |
var testBrowser = 'Chrome'; // Default browser | |
if (process.env.NODE_ENV === 'travis') { | |
testBrowser = 'PhantomJS'; // Must use for headless CI (Travis-CI) | |
} | |
console.log("Karma browser: " + testBrowser); | |
... |
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
# Choice 1: Clone post's existing angular-quiz project from GitHub: | |
git clone https://github.com/garystafford/angular-quiz.git | |
# Choice 2: Install generator-angular and build project from scratch | |
npm install -g generator-angular | |
mkdir project_name_here && cd $_ | |
yo angular app_name_here | |
# Use generator-angular's generators to create project components | |
# Requires yo is installed for running Yeoman generators: npm install -g yo |
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
{ | |
"name": "Basic Quiz Example", | |
"questions": [ | |
{ | |
"_id": 1, | |
"question": "AngularJS is a declarative programming language.", | |
"answer": true | |
}, | |
{ | |
"_id": 2, |
OlderNewer