23.01.2018 Views

MICROSOFT_PRESS_EBOOK_PROGRAMMING_WINDOWS_8_APPS_WITH_HTML_CSS_AND_JAVASCRIPT_PDF

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 2<br />

Quickstart<br />

This is a book about developing apps. So, to quote Paul Bettany’s portrayal of Geoffrey Chaucer in<br />

A Knight’s Tale, “without further gilding the lily, and with no more ado,” let’s create some!<br />

A Really Quick Quickstart: The Blank App Template<br />

We must begin, of course, by paying due homage to the quintessential “Hello World” app, which we can<br />

achieve without actually writing any code at all. We simply need to create a new app from a template in<br />

Visual Studio:<br />

1. Run Visual Studio Express. If this is your first time, you’ll be prompted to obtain a developer<br />

license. Do this, because you can’t go any further without it!<br />

2. Click New Project… in the Visual Studio window, or use the File > New Project menu command.<br />

3. In the dialog that appears (Figure 2-1), make sure you select JavaScript under Templates on the<br />

left side, and then select Blank Application in the middle. Give it a name (HelloWorld will do), a<br />

folder, and click OK.<br />

FIGURE 2-1 Visual Studio’s New Project dialog using the light UI theme. (See the Tools > Options menu<br />

command, and then change the theme in the Environment/General section). I use the light theme in this<br />

book because it looks best against a white page background.<br />

52

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!