Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: updated "Getting Started" topic #1045

Merged
merged 13 commits into from
Nov 15, 2018
Merged

Conversation

Doug-AWS
Copy link
Contributor

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license.

I updated the topic based on the feedback from issue #1044; updated code based on V 0.14.1.


.. _setup_recommendations:

Recommendations
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not really a recommendation. It's required

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll remove the "Recommendations" heading.

`Node.js (>= 8.11.x) <https://nodejs.org/en/download>`_ to use the command-line
toolkit and language bindings.

You must set the `JAVA_HOME` environment variable to the path to where you have
Copy link
Contributor

Choose a reason for hiding this comment

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

I would start the sentence with "If you use Java...", so people can "bail out" early if they don't care

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will do

This guide walks you through the process of creating an |cdk| project.
You can also use the
:code:`cdk init` command to create a skeleton project from a
template in any of the supported languages except JavaScript.
Copy link
Contributor

Choose a reason for hiding this comment

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

That's going to be outdated soon. Maybe we can just write "in supported languages".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

}
}

.. group-tab:: Java

Create an empty source-controlled directory for your project:
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this only in java?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It (git init) is already there in the others.

.. code-block:: sh

.classpath.txt
target
Copy link
Contributor

Choose a reason for hiding this comment

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

indentation is off

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Stoopid editor. I've replaced all tabs.

@@ -158,8 +207,7 @@ library includes the basic classes needed to write |cdk| stacks and apps.

.. group-tab:: TypeScript

Install the **@aws-cdk/cdk** package and the **@types/node** (the latter
is needed because we reference **process.argv** in our code):
Install the **@aws-cdk/cdk** and the **@types/node** packages:
Copy link
Contributor

Choose a reason for hiding this comment

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

@types/node is actually not needed anymore

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed

public static void main(final String argv[]) {
App app = new App();

// Create your stacks here as:
Copy link
Contributor

Choose a reason for hiding this comment

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

why only in java?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll remove it as we add a stack later.


.. tabs::

.. group-tab:: JavaScript

In **index.js**:
Create the file **hello-cdk.js** in the **bin** folder:
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 it's clearer if you write it as bin/hello-cdk.js

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure

@Doug-AWS
Copy link
Contributor Author

Doug-AWS commented Nov 6, 2018

ping

@eladb
Copy link
Contributor

eladb commented Nov 7, 2018

Please merge from master:

$ git fetch origin
$ git merge origin/master
$ git push origin dougsch/test-getting-started

@Doug-AWS
Copy link
Contributor Author

Doug-AWS commented Nov 8, 2018

Okay, 1 file changed

@eladb eladb merged commit 29b611f into master Nov 15, 2018
@eladb eladb deleted the dougsch/test-getting-started branch November 15, 2018 15:11
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.

3 participants