Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@marcospereira
Copy link
Member

This is a follow up of #192 by @rstento. There are some changes here that depend on documentation improvements too, so another pull request will be made to improve Play docs and make it consistent
with the changes here.

@rstento, @richdougherty, @gmethvin, and @wsargent, please review.


@renderProject(project: ExampleProject) = {
<tr>
<td><a href="@project.downloadUrl" target="_blank">@project.displayName</a></td>
Copy link
Member Author

Choose a reason for hiding this comment

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

@rstento we get data for sample projects using Tech Hub API. The only URLs available there are for download and Github. To avoid hardcoding the links, I've decided to keep the current way of listing the starter projects.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think that's OK for now, but we can do some usability improvements later. It will help when Tech Hub allows us to filter for Java and Scala as mentioned in my review of the doc changes.

<h3><span>&raquo;</span> Learn whether Play Framework is right for your project</h3>
<div class="try-option-content">
<ul>
<li><a href="@controllers.documentation.ReverseRouter.latest(None, "Introduction")">Introduction to Play</a></li>
Copy link
Member Author

Choose a reason for hiding this comment

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

Introduction and Requirements are two new pages at the docs.

Copy link
Member

@richdougherty richdougherty left a comment

Choose a reason for hiding this comment

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

A few minor changes.

<div class="try-option-content">
<ul>
<li><a href="@controllers.documentation.ReverseRouter.latest(None, "Introduction")">Introduction to Play</a></li>
<li><a href="@controllers.documentation.ReverseRouter.latest(None, "Requirements")">Requirements to work With Play</a></li>
Copy link
Member

Choose a reason for hiding this comment

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

Either System Requirements or Requirements for using Play read better to me. 😄

<div class="try-option">
<h3><span>&raquo;</span> Follow the Hello World Tutorial</h3>
<div class="try-option-content">
<p>Play requires Java SE 1.8 or higher. You can check your version with the <code>java -version</code> command or install it from <a href="//www.oracle.com/technetwork/java/javase/downloads/index.html" rel="noopener">Oracle's site</a>. See details about the <a href="@controllers.documentation.ReverseRouter.latest(None, "Requirements")">requirements to work with Play</a>.</p>
Copy link
Member

Choose a reason for hiding this comment

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

Related to the previous change: See details about the requirements to work with PlaySee details about Play's system requirements

<div class="try-option">
<h3><span>&raquo;</span> Follow the Hello World Tutorial</h3>
<div class="try-option-content">
<p>Play requires Java SE 1.8 or higher. You can check your version with the <code>java -version</code> command or install it from <a href="//www.oracle.com/technetwork/java/javase/downloads/index.html" rel="noopener">Oracle's site</a>. See details about the <a href="@controllers.documentation.ReverseRouter.latest(None, "Requirements")">requirements to work with Play</a>.</p>
Copy link
Member

Choose a reason for hiding this comment

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

Do you think it would be easier for beginners to understand if we call it Java 8 rather than Java 1.8?

<div class="try-section">
<h2>Already know a bit about Play?</h2>
<p>Check out our <a href="//developer.lightbend.com/start/?group=play">example projects for Java or Scala</a>. The downloadable zip files include everything you need, including <a href="//www.scala-sbt.org/index.html">sbt</a>, Play Framework, and an HTTP server. Examples also support <a href="//docs.gradle.org/current/userguide/play_plugin.html">Gradle</a>. You can also create a Play project from the command line using a template if you have sbt installed already.</p>
<p>Play requires Java SE 1.8 or higher. You can check your version with the <code>java -version</code> command or install it from <a href="//www.oracle.com/technetwork/java/javase/downloads/index.html" rel="noopener">Oracle's site</a>. See details about the <a href="@controllers.documentation.ReverseRouter.latest(None, "Requirements")">requirements to work with Play</a>.</p>
Copy link
Member

Choose a reason for hiding this comment

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

Same comment about Java 8 vs 1.8 and text for system requirements.

<div class="try-option-content">
<p>Follow these steps to try an example project:</p>
<ol>
<li>Choose an example from <a href="">Lightbend's Tech Hub</a>.</li>
Copy link
Member

Choose a reason for hiding this comment

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

Still needs href value.

<p>Follow these steps to try an example project:</p>
<ol>
<li>Choose an example from <a href="">Lightbend's Tech Hub</a>.</li>
<li>Click "CREATE A PROJECT FOR ME" to download the zipped project.</li>
Copy link
Member

Choose a reason for hiding this comment

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

Use text-transform: uppercase? (Very minor!)

<li>In a command window, navigate to the top level project directory.</li>
<li>Enter one of the following commands:
<ul>
<li>On OSx or Linux systems: <code>./sbt run</code> or <code>./gradlew runPlayBinary</code></li>
Copy link
Member

Choose a reason for hiding this comment

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

OSxmacOS

<div class="try-option-content">
<p>Follow these steps to try an example project:</p>
<ol>
<li>Choose an example from <a href="https://developer.lightbend.com/start/?group=play">Lightbend's Tech Hub</a>.</li>
Copy link
Member

Choose a reason for hiding this comment

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

What's the advantage of moving these examples off the download page and onto another site? I think it makes the experience less streamlined.

Copy link
Member Author

Choose a reason for hiding this comment

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

Increase awareness of Tech Hub. But I agree that it is less streamlined.

But I think we can have both. We can have a streamlined experience here, at the "try play" page, and have other places linking to Tech Hub (and even this page too).

@rstento, what do you think?

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we go ahead with these changes and see what they look like? I always find it helps when you see it live. Then maybe we can revisit?

Copy link
Member Author

Choose a reason for hiding this comment

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

@rstento 👍


@renderProject(project: ExampleProject) = {
<tr>
<td><a href="@project.downloadUrl" target="_blank">@project.displayName</a></td>
Copy link
Contributor

Choose a reason for hiding this comment

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

I think that's OK for now, but we can do some usability improvements later. It will help when Tech Hub allows us to filter for Java and Scala as mentioned in my review of the doc changes.

<div class="try-option-content">
<p>Follow these steps to try an example project:</p>
<ol>
<li>Choose an example from <a href="https://developer.lightbend.com/start/?group=play">Lightbend's Tech Hub</a>.</li>
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we go ahead with these changes and see what they look like? I always find it helps when you see it live. Then maybe we can revisit?

This is a follow up of #192 by @rstento. There are some changes
here that depends on documentation improvements too, so another
pull request will be made to improve Play docs and make it consistent
with the changes here.
Copy link
Member

@ignasi35 ignasi35 left a comment

Choose a reason for hiding this comment

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

The changes LGTM I guess. Few details go over my head TBH.

@marcospereira marcospereira merged commit 65a7be9 into playframework:master Sep 21, 2018
@marcospereira marcospereira deleted the getting-starter-experience-improvements branch September 21, 2018 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants