Commit 96d8c58d43c8e18acdfa4a1a7bedbcac537aef31: README updates Branch: refs/heads/master Author: Sam Ruby Committer: Sam Ruby Pusher: rubys ------------------------------------------------------------ Gemfile | - README | ------ README.md | ++++++++ - views/main.html.rb | + - ------------------------------------------------------------ 252 changes: 232 additions, 20 deletions. ------------------------------------------------------------ diff --git a/Gemfile b/Gemfile index 3e6c43e..ac16276 100644 --- a/Gemfile +++ b/Gemfile @@ -6,7 +6,6 @@ gem 'ruby2js' gem 'sinatra' gem 'nokogumbo' gem 'execjs' -gem 'github-markdown' gem 'whimsy-asf' group :test do diff --git a/README b/README deleted file mode 100644 index 1d4582f..0000000 --- a/README +++ /dev/null @@ -1,6 +0,0 @@ -This is a React.js application making use of Wunderbar in the production of -HTML and Ruby2JS in the production of JavaScript. - - http://facebook.github.io/react/ - https://github.com/rubys/wunderbar#readme - https://github.com/rubys/ruby2js#readme diff --git a/README.md b/README.md index 0ae0c3b..d16c472 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,14 @@ +Preface +--- + + * I ask that you [give it five minutes](https://signalvnoise.com/posts/3124-give-it-five-minutes) + * Be prepared to [rethink best practices](https://www.youtube.com/watch?v=x7cQ3mrcKaY) + Preparation --- -This has been tested to work on Mac OSX and Linux. It may not work yet on -Windows. +This has been tested to work on Mac OSX and Linux. It likely will not work +yet on Windows. For a partial installation, all you need is Ruby and Node.js. @@ -17,22 +23,29 @@ For planning purposes, prereqs for a _full_ installation will require: * The following software installed: * Subversion * Ruby 1.9.3 or greater - * Node.js + * io.js plus npm install react, jsdom, and jquery * PhantomJS 2.0 * Mac OS/X Yosemite users may need to get the binary from comments on [12900](https://github.com/ariya/phantomjs/issues/12900). -Kicking the tires: +Note: + + * The installation of PhantomJS on Linux current requires a 30+ minute + compile. The binary provided for OS/X Yosemite is not part of the + standard distribution. Feel free to skip this step on your first + ("give it five minutes") pass through this. If you see promise, + come back and complete this step. + + +Kicking the tires --- -``` -sudo gem install bundler -git clone ... -cd ... -bundle install -rake -RACK_ENV=test puma -``` + sudo gem install bundler + git clone ... + cd agenda + bundle install + rake spec + rake server:test Visit http://localhost:9292/ in your favorite browser. @@ -41,7 +54,213 @@ Notes: * If you don't have PhantomJS installed, or have a version of PhantomJS prior to version 2.0 installed, one test will fail. + * If you don't have io.js installed, two additional tests will fail. + * The data you see is a sanitized version of actual agendas that have been included in the repository for test purposes. +Viewing Source (Live Results) +--- + +At this point, you have something up and running. Let's take a look around. + + * The first thing I want you to do is use the view source function in your + browser. What you will see is: + + * A head section that pulls in some stylesheets. Most notably, the + stylesheet from [bootstrap](http://getbootstrap.com/). + + * a `
` element with an id of `main` followed by the HTML used + to present the first page fetched from the server. If you want to + see a different page, go to that page and hit refresh then view + source again. This content is nicely indented and other than + an abundance of `data-reactid` attributes that React uses to keep + track of things, it is fairly straightforward. + + * a few `