This is a scaffold for setting up: an API with Rails and the ember-rails gem, persistence with Ember.Data, and a browser app using Ember.js
See source code on GitHub: pixelhandler/journal.
| # Replace any brackets with real values | |
| # Try to ssh in to DREAMHOST (ensure it no longer asks for a PW); you may want to restart Terminal | |
| ssh [user]@[host] | |
| cd ~ | |
| mkdir [mydomain_com].git | |
| cd [mydomain_com].git | |
| git init --bare | |
| vi hooks/post-receive | |
| # Enter the code from the "post-receive" file (in this gist); save + quit |
| # This is the default .slate file. | |
| # If no ~/.slate file exists this is the file that will be used. | |
| config defaultToCurrentScreen true | |
| config nudgePercentOf screenSize | |
| config resizePercentOf screenSize | |
| # Resize Bindings | |
| bind right:alt resize +10% +0 | |
| bind left:alt resize -10% +0 |
This is a scaffold for setting up: an API with Rails and the ember-rails gem, persistence with Ember.Data, and a browser app using Ember.js
See source code on GitHub: pixelhandler/journal.
| # Using Slate - https://github.com/jigish/slate | |
| config defaultToCurrentScreen true | |
| config nudgePercentOf screenSize | |
| config resizePercentOf screenSize | |
| bind 2:cmd grid padding:5 0:6,2 | |
| alias lefthalf move screenOriginX;screenOriginY screenSizeX/2;screenSizeY | |
| alias righthalf move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY |
| <h1> | |
| Rails | |
| </h1> | |
| <div class="diagram"> | |
| Visit->Request: | |
| Request->App: | |
| App->Routes: | |
| Routes->Controller: | |
| Controller->Model: | |
| Controller->View: |
| <script type="text/vnd.graphviz" id="graphviz"> | |
| digraph G { | |
| "browser" -> | |
| "http_request" -> | |
| "server" -> | |
| "routes" -> | |
| "controller" -> | |
| "model" -> "controller" | |
| "controller" -> "response" | |
| "response" -> "view" -> "html" |
| <script type="text/vnd.graphviz" id="graphviz"> | |
| digraph G { | |
| "you" -> "createGist" | |
| "createGist" -> "gist" | |
| "gist" -> "code" | |
| "code" -> "agile.pics" | |
| "agile.pics" -> "visualization" | |
| "visualization" -> "share" | |
| "share" -> "collaborator" | |
| "collaborator" -> "editGist" |
| <h1> | |
| Using Agile Pics | |
| </h1> | |
| <div class="diagram"> | |
| Create a Gist->Grab its Id: | |
| Visit->Request: | |
| Request->App: | |
| App->Routes: | |
| Routes->Controller: | |
| Controller->Model: |
| <h1> | |
| Billing | |
| </h1> | |
| <div class="diagram"> | |
| Billing->Corresponding\n Author: | |
| Billing->Institutional\n Accounts: | |
| Billing->Global Participation\n Initiative: | |
| Billing->Publication Fee\n Assistance: | |
| </div> |