From commits-return-379-apmail-whimsical-commits-archive=whimsical.apache.org@whimsical.apache.org Fri Jan 22 02:41:25 2016 Return-Path: X-Original-To: apmail-whimsical-commits-archive@minotaur.apache.org Delivered-To: apmail-whimsical-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4D25A18CBC for ; Fri, 22 Jan 2016 02:41:25 +0000 (UTC) Received: (qmail 408 invoked by uid 500); 22 Jan 2016 02:41:25 -0000 Delivered-To: apmail-whimsical-commits-archive@whimsical.apache.org Received: (qmail 387 invoked by uid 500); 22 Jan 2016 02:41:25 -0000 Mailing-List: contact commits-help@whimsical.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@whimsical.apache.org Delivered-To: mailing list commits@whimsical.apache.org Received: (qmail 378 invoked by uid 99); 22 Jan 2016 02:41:25 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jan 2016 02:41:25 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id C2BE21A0803 for ; Fri, 22 Jan 2016 02:41:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.247 X-Spam-Level: * X-Spam-Status: No, score=1.247 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.554, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id SCoccacQzBwu for ; Fri, 22 Jan 2016 02:41:10 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTP id 7FAD9233F6 for ; Fri, 22 Jan 2016 02:40:59 +0000 (UTC) Received: from matt.apache.org (unknown [207.244.88.130]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 30C28E0924 for ; Fri, 22 Jan 2016 02:40:59 +0000 (UTC) Received: by matt.apache.org (ASF Mail Server at matt.apache.org, from userid 33) id 0852D803B; Fri, 22 Jan 2016 02:40:59 +0000 (UTC) From: Sam Ruby Reply-To: commits@whimsical.apache.org To: commits@whimsical.apache.org Subject: [whimsy.git] [48/50] Commit 96d8c58: README updates Message-Id: <20160122024059.0852D803B@matt.apache.org> Date: Fri, 22 Jan 2016 02:40:59 +0000 (UTC) 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 `