Skip to content
This repository has been archived by the owner on May 26, 2019. It is now read-only.

Quick Start Guide #1007

Merged
merged 1 commit into from Feb 4, 2016
Merged

Quick Start Guide #1007

merged 1 commit into from Feb 4, 2016

Conversation

tomdale
Copy link
Member

@tomdale tomdale commented Nov 28, 2015

After a few discussions with @wycats, we realized that the fact that there's no "try Ember in 5 minutes" resource was extremely harmful to adoption. This guide is my attempt to rectify that. It significantly expands on (and replaces) the old "Your First Ember App" section.

Most other libraries and frameworks have something like this. You can compare it, for example, to Angular 2's quickstart. One nice thing that Ember CLI does for us is eliminate almost all of the work happening in Angular's quickstart, so our quickstart can actually begin covering the conceptual model rather than just have the user type boilerplate code.

I'd love to hear feedback, particularly from beginners. And I want to make sure this integrates well with the tutorial work @michaelrkn has been doing.

run the following command:

```sh
ember build
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we introduce --env production ? or too soon?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The next paragraph does say that it packages everything into an optimized bundle, so it should really include that (or the friendlier -prod)

@steveklabnik
Copy link
Contributor

hi I haven't read this yet but 👍 is it ever needed, lemme check it out now

@steveklabnik
Copy link
Contributor

Looks great here!

Serving on http://localhost:4200/
```

(To stop the server at any time, type Ctrl-C in your terminal.)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be included in the text block?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is just part of Tom's narration.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@trek is correct, but @maclover7 does raise the good point that we don't tell newbs how to kill the server once they've started it. 😛 Maybe we should open an issue or PR on ember-cli.

@michaelrkn
Copy link
Contributor

Awesome! This is a great idea.

What do you think about integrating this with the tutorial, so that a new Ember dev following along with the Guides starting at the beginning can use this page to create their app, and then the tutorial continues to build it out where the quickstart leaves off?

Right now, the structure of the Getting Started and Tutorial sections looks like:

  • Getting Started
    • Installing Ember
    • Core Concepts
    • Ember CLI (ember new, directory structure, ember s)
  • Tutorial
    • Routes and Templates
    • The Model Hook
    • Ember Data
    • A Simple Component

Maybe we could change it to something like:

  • Getting Started
    • Quick Start (installing, ember new, first template, component, model hook, building)
    • Core Concepts
    • Tooling (directory structure, etc)
  • Tutorial
    • Routes and Templates
    • Ember Data
    • A Simple Component

If this or some variation makes sense, can you change this PR to be against the tutorial branch?

Thanks!!

## Define a Route

Ember makes URLs the heart of your application, so you never build apps
that feel broken to your users. Before doing anything in Ember, first think
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

URLs the heart... never build apps that feel broken to your users.

For someone who hasn't internalized the zen of Ember they won't understand what this really means, or what makes apps broken wrt URLs.

@tomdale tomdale changed the title Quickstart Guide Quick Start Guide Nov 29, 2015

Ember makes URLs the heart of your application, so you never build apps
that feel broken to your users. Before doing anything in Ember, first think
about your application's URLs.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

first think about your application's URLs.

This isn't actionable advice because you haven't helped the reader understand how to think about URLs. If you can't explain it right here, then you should instead try to get them excited about how either this guide will eventually teach it to them, or if you can't teach it to them in this guide, you should try to get them excited about how using Ember will teach it to them. Example: "Working with Ember will help you learn how to think about designing beautiful URL architectures for your apps."

@dherman
Copy link

dherman commented Nov 29, 2015

I'm so glad you're doing this -- TBH this will help me get started personally!

Is it worth having some sort of hints about where to go from here once you get to the end of the quick start guide?

@michaelrkn
Copy link
Contributor

@dherman I'd personally like to see this transition into the rest of the tutorial.

@michaelrkn
Copy link
Contributor

I had another idea - what about making this the first page of the Guides? We could shorten up the front matter that's there currently, and get people coding an Ember app right off the bat.

@acorncom
Copy link
Member

I like the idea of using this quick start to also get people started toward the rest of our more "in-depth" tutorial 👍

@trek
Copy link
Member

trek commented Nov 30, 2015

I had another idea - what about making this the first page of the Guides? We could shorten up the front matter that's there currently, and get people coding an Ember app right off the bat.

Love this idea.

```app/templates/people.hbs{-1,-2,-3,-4,-5,-6,-7,+8}
<h2>List of Scientists</h2>

<ul>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be a diff view? it shows both the old code and the new component even though we said "Replace" above

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@praxxis When rendered, it shows the previous code as "removed" (note the wonky diff syntax in the file name).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tomdale Re the wonky diff syntax, I'm not sure we're continuing to support that with the new redesign. It's not something we've had a need for up until now, but I've been seeing a few places here (and in the tutorial) where it might be handy.

@locks do you remember if we're adding in styling for diffs? We'd been contemplating killing that I thought ...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the proposed switch to highlight.js, does highlight.js support diff styling?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@michaelrkn Per this: highlightjs/highlight.js#480 it'll either handle styling a .diff or a .js file but not both

@rtablada
Copy link
Contributor

Especially on quick start guide we should avoid using you and you're POV. Keep instructions using we and our. I can work on a PR to update this.

@tomdale
Copy link
Member Author

tomdale commented Dec 19, 2015

@rtablada

Especially on quick start guide we should avoid using you and you're POV. Keep instructions using we and our. I can work on a PR to update this.

Why?

@locks
Copy link
Contributor

locks commented Feb 4, 2016

@homu r+

@homu
Copy link
Contributor

homu commented Feb 4, 2016

📌 Commit 77aef2f has been approved by locks

@homu
Copy link
Contributor

homu commented Feb 4, 2016

Testing commit 77aef2f with merge 48d51f0...

homu added a commit that referenced this pull request Feb 4, 2016
Quick Start Guide

After a few discussions with @wycats, we realized that the fact that there's no "try Ember in 5 minutes" resource was extremely harmful to adoption. This guide is my attempt to rectify that. It significantly expands on (and replaces) the old "Your First Ember App" section.

Most other libraries and frameworks have something like this. You can compare it, for example, to [Angular 2's quickstart](https://angular.io/docs/js/latest/quickstart.html). One nice thing that Ember CLI does for us is eliminate almost all of the work happening in Angular's quickstart, so our quickstart can actually begin covering the conceptual model rather than just have the user type boilerplate code.

I'd love to hear feedback, particularly from beginners. And I want to make sure this integrates well with the tutorial work @michaelrkn has been doing.
@homu
Copy link
Contributor

homu commented Feb 4, 2016

☀️ Test successful - status

@homu homu merged commit 77aef2f into master Feb 4, 2016
@locks locks deleted the quickstart branch February 4, 2016 01:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet