sudo gem install compasssudo npm install bower -gsudo npm install grunt-cli -gsudo npm install grunt -gsudo gem install sasssudo gem install --pre sass-css-importernpm install && grunt installconfig.json if neededgrunt buildbrew install mongodb [Mac OS]mkdir -p /path/to/data/dbsudo mongod --fork --logpath /var/log/mongodb.log --port 27017 --dbpath /path/to/datasudo mongod --fork --logpath /var/log/mongodb.log --port 27017 --dbpath /path/to/datamongo --host the_host --port 27017use admindb.createUser({user: "admin", pwd: "iamagod", roles: [ "root" ]})sudo mongod ... --authmongo --username admin --password iamagod admin --authenticationDatabase adminuse maindb.shops.ensureIndex({"loc":"2dsphere"})db.shops.ensureIndex({"name":"text"})db.shops.ensureIndex({"address.zip":1})db.shops.ensureIndex({"address.city":1})db.shops.ensureIndex({"date":1})mongodump --username admin --password iamagod --authenticationDatabase admin --db main --collection shopsmongorestore --username admin --password iamagod --db main --authenticationDatabase admin --collection shops dump/test/shops.bsontake autoconfcurl http://ftp.gnu.org/gnu/autoconf/autoconf-latest.tar.gz > autoconf.tar.gz && tar -xzf autoconf.tar.gz && cd autoconf-2.69 && ./configure && makesudo make installexport PHP_AUTOCONF=/usr/local/bin/autoconfsudo pecl install mongosudo vi /etc/php.ini and add extension=mongo.socurl -sS https://getcomposer.org/installer | phpmv composer.phar /usr/local/bin/composercd api && composer installdbViewer/config.jsnode dbViewer/app.jssudo mongod --fork --logpath /var/log/mongodb.log --dbpath $HOME/Projects/haveidols/testMongoDB/data --authmongo --host localhost --port 27017 --username admin --password iamagod admin --authenticationDatabase adminmongodump --host localhost --port 27017 --username admin --password iamagod --authenticationDatabase admin --db main --collection shopssrcsetsudo npm install bower -gsudo npm install grunt -gsudo gem install sasssudo gem install --pre sass-css-importercd _build && npm install_build/config.json if neededcd _build && grunt buildsudo npm install bower -gsudo npm install grunt -gsudo gem install sasssudo gem install --pre sass-css-importer_build/config.json if neededcd _buildnpm install && grunt builddata-status of the body tag when they finishedndex-debug.html insteadindex-debug.html loads the non compiled versioncd _build && bower install the_module --save_dev/js/libs/vendor/the_module/path/to/jsFile in _dev/main.js in path section and include module name in the requirejs callcd _build && bower install the_module --save_dev/scss/main.scss and add @import "CSS:../js/libs/vendor/the_module/the_css_path/the_css_file_without_extension";cd _build && bower install the_module --savebuild/config.json and update the copyFiles value so the files from the vendor path are copyied in the public assets folderapi : the public APIconfigs : global config and projects config filesclones : temporary repos clones (clones for building then copying to web)envs-assets : projects env specific assetslibs : libslocks: the locks folderprocessors : the processors.*--deploy==ENV==TARGET$PROCESSOR_AVAILABLE_ENVS in configs/config.phpprocessorsprocessors/* filesmain processor must be called first and calls the next processors configured in configs/owner/repo.json->processorsProcessor class (libs/processor.php)run methodProcessor classGITHUB_MASTER_TOKEN user must have access to all reposGET /reposPOST /repos/:owner/:repo/tag :tests/api-tests.phpPOST /repos/:repo/init$MASTER_USERS)tests/api-tests.phpPOST /repos/:owner/:repo/hook/initGITHUB_MASTER_TOKEN if called from PHP for administration purpose)tests/api-tests.phpPOST /repos/:owner/:repo/hook/:tokenhttp://public.url.to.the.api.folder.com/tests/api-tests.phpphp tests/processors-test.phptail -f processing-owner-repo.log and tail -f api.log exec error will go in the apache log : tail -f /var/log/apache2/error_logcurl -sS https://getcomposer.org/installer | phpmv composer.phar /usr/local/bin/composercp, rsync, ssh, etc.)composer installmv configs/config.php.sample configs/config.phpconfigs/config.php file :
API_PRIVATE_KEY to a random stringAPACHE_HOME to an existing folder and make sure Apache can write in it (or sudo mkdir /ghm-tmp && sudo chmod -R 777 /ghm-tmp (the APACHE_HOME folder, defined in configs/config.php)ENV_PATH so it contains all binaries that might be called from processors (rsync, scp, git), or build files (npm, grunt, etc.)API_URL is where your api is publicly http availableDEBUG to false in production modehttp://public.url.to.the.api.folder.comList of more or less usefull tests for Photoshop.
Web and app oriented.
A grunt based email builder for designing, testing and publishing.
npm install grunt-cli -ggem install sass premailer hpricot nokogiricd _buildnpm installcp campaigns/config.json.sample campaigns/config.jsongrunt and follow instructionsgrunt _build : Builds a campaign to campaign-dist/campaign_namegrunt watchit : Watches and builds a campaigngrunt prod : Prepare campaign for prod (CDNfys assets) (the campaign-dist/campaign_name html files are production ready)grunt test : Sends a test email of a campaign (requires CDN)grunt send : Sends an email of a campaign (requires CDN)campaign-archivescampaignscampaigns/config.jsonconfig.json file in the campaign folder./ : <img src="logo.png" height="50" alt="Mailgun"> or <link href="main.css" media="all" rel="stylesheet" type="text/css"/>campaigns-archive/_zurbcampaigns-archive/_mailchimpcampaigns-archive/_mailgunsubject, sender, receivers and mandrillKey in config.json (global or local)awsKey, awsSecretAccessKey and awsBucket in config.json (global or local)awsBucket)receivers in config.json to the adress given by Litmus<center>alt attribute for images fallback (no special characters)