Skip to content

Commit

Permalink
working on outline
Browse files Browse the repository at this point in the history
  • Loading branch information
SachaG committed Feb 25, 2014
1 parent 25ea45e commit a908862
Show file tree
Hide file tree
Showing 10 changed files with 1,817 additions and 0 deletions.
95 changes: 95 additions & 0 deletions 01-introduction.md.erb
Expand Up @@ -5,3 +5,98 @@ date: 0001/01/01
number: 1
contents: Learn what makes Meteor special.|Read about the story of this book.|Learn how this book is organized.
---

////

////

////

////

////

////

### What is Meteor?

////

////

////

### Why Meteor?

////

////

////

### Why This Book?

////

////

////

////

### About the Authors

////

<%= image "tom-photo.jpg", "portrait" %>

////

<%= image "sacha-photo.jpg", "portrait" %>

////

### Chapters & Sidebars

////

////

////

////

### Commits & Live Instances

////

////

<%= commit "11-2", "Display notifications in the header." %>

////

### A Few Other Resources

////

////

<% note do %>

### Do I Need Git?

////

////

////

<% end %>

### Getting in Touch

- ////
- ////
- ////
- ////
288 changes: 288 additions & 0 deletions 02-getting-started.md.erb
Expand Up @@ -5,3 +5,291 @@ date: 0002/01/01
number: 2
contents: Install Meteor & Meteorite.|Learn about the 5 types of Meteor packages.|Setup the file structure of your Meteor app.
---

////

////

~~~bash
$ curl https://install.meteor.com | sh
~~~

////

<% note do %>

### *Not* Installing Meteor

////

////

////

<% end %>

### Meteorite

////

////

### Installing Meteorite

////

- [Node download site](http://nodejs.org/download/)
- [Git download site](http://git-scm.com/downloads)

////

~~~bash
$ npm install -g meteorite
~~~

<% note do %>

### Permission errors?

////

~~~bash
$ sudo -H npm install -g meteorite
~~~

////

<% end %>

////

////

<% note do %>

### `mrt` vs `meteor`

////

<% end %>

### Creating a Simple App

////

~~~bash
$ mrt create microscope
~~~

////

~~~bash
microscope.css
microscope.html
microscope.js
smart.json
~~~

////

////

~~~bash
$ cd microscope
$ meteor
~~~

////

<%= screenshot "2-1", "Meteor's Hello World." %>
<%= commit "2-1", "Created basic microscope project." %>

////

### Adding a Package

////

~~~bash
$ mrt add bootstrap
~~~

<%= commit "2-2", "Added bootstrap package." %>
<% note do %>

### A Note on Packages

////

- ////
- ////
- ////
- ////
- ////

<% end %>

### The File Structure of a Meteor App

////

////

////

- ////
- ////
- ////
- ////
- ////
- ////

////

////

<% note do %>

### Is Meteor MVC?

////

////

<% end %>

### No public?

////

////

<% note do %>

### Underscores vs CamelCase

////

////

////

<% end %>

### Taking Care of CSS

////

////

~~~css
.grid-block, .main, .post, .comments li, .comment-form {
background: #fff;
border-radius: 3px;
padding: 10px;
margin-bottom: 10px;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}
body {
background: #eee;
color: #666666;
}
.navbar { margin-bottom: 10px }
.navbar .navbar-inner {
border-radius: 0px 0px 3px 3px;
}
#spinner { height: 300px }
.post {
*zoom: 1;
-webkit-transition: all 300ms 0ms;
-webkit-transition-delay: ease-in;
-moz-transition: all 300ms 0ms ease-in;
-o-transition: all 300ms 0ms ease-in;
transition: all 300ms 0ms ease-in;
position: relative;
opacity: 1;
}
.post:before, .post:after {
content: "";
display: table;
}
.post:after { clear: both }
.post.invisible { opacity: 0 }
.post .upvote {
display: block;
margin: 7px 12px 0 0;
float: left;
}
.post .post-content { float: left }
.post .post-content h3 {
margin: 0;
line-height: 1.4;
font-size: 18px;
}
.post .post-content h3 a {
display: inline-block;
margin-right: 5px;
}
.post .post-content h3 span {
font-weight: normal;
font-size: 14px;
display: inline-block;
color: #aaaaaa;
}
.post .post-content p { margin: 0 }
.post .discuss {
display: block;
float: right;
margin-top: 7px;
}
.comments {
list-style-type: none;
margin: 0;
}
.comments li h4 {
font-size: 16px;
margin: 0;
}
.comments li h4 .date {
font-size: 12px;
font-weight: normal;
}
.comments li h4 a { font-size: 12px }
.comments li p:last-child { margin-bottom: 0 }
.dropdown-menu span {
display: block;
padding: 3px 20px;
clear: both;
line-height: 20px;
color: #bbb;
white-space: nowrap;
}
.load-more {
display: block;
border-radius: 3px;
background: rgba(0, 0, 0, 0.05);
text-align: center;
height: 60px;
line-height: 60px;
margin-bottom: 10px;
}
.load-more:hover {
text-decoration: none;
background: rgba(0, 0, 0, 0.1);
}
~~~
<%= caption "client/stylesheets/style.css" %>
<%= commit "2-3","Re-arranged file structure." %>
<% note do %>

### A Note on CoffeeScript

////

`mrt add coffeescript`

<% end %>

0 comments on commit a908862

Please sign in to comment.