-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup_win10.html
331 lines (226 loc) · 17.2 KB
/
setup_win10.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Windows 10 Setup — ClojureBridgeMN Documentation November 4-5, 2016 documentation</title>
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="index" title="Index"
href="genindex.html"/>
<link rel="search" title="Search" href="search.html"/>
<link rel="top" title="ClojureBridgeMN Documentation November 4-5, 2016 documentation" href="index.html"/>
<link rel="up" title="Installfest" href="setup.html"/>
<link rel="next" title="Linux Setup" href="setup_ubuntu.html"/>
<link rel="prev" title="Windows 8 Setup" href="setup_win8.html"/>
<script src="_static/js/modernizr.min.js"></script>
</head>
<body class="wy-body-for-nav" role="document">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search">
<a href="index.html" class="icon icon-home"> ClojureBridgeMN Documentation
</a>
<div class="version">
Saturday Nov 5 2016 @ 15:59:08 futuro
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
<input type="text" name="q" placeholder="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
<ul class="current">
<li class="toctree-l1 current"><a class="reference internal" href="setup.html">Installfest</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="setup.html#requirements">Requirements</a></li>
<li class="toctree-l2"><a class="reference internal" href="setup.html#code-of-conduct">Code of Conduct</a></li>
<li class="toctree-l2"><a class="reference internal" href="setup.html#what-we-are-installing">What we are installing</a></li>
<li class="toctree-l2"><a class="reference internal" href="setup.html#instructions-for-all">Instructions for all</a></li>
<li class="toctree-l2 current"><a class="reference internal" href="setup.html#instructions-by-operating-system">Instructions by operating system</a><ul class="current">
<li class="toctree-l3"><a class="reference internal" href="setup_osx.html">Mac OS X</a></li>
<li class="toctree-l3"><a class="reference internal" href="setup_win7.html">Windows 7</a></li>
<li class="toctree-l3"><a class="reference internal" href="setup_win8.html">Windows 8</a></li>
<li class="toctree-l3 current"><a class="current reference internal" href="#">Windows 10</a><ul>
<li class="toctree-l4"><a class="reference internal" href="#starting-a-command-prompt">Starting a command prompt</a></li>
<li class="toctree-l4"><a class="reference internal" href="#installing-java">Installing Java</a></li>
<li class="toctree-l4"><a class="reference internal" href="#installing-leiningen">Installing Leiningen</a></li>
<li class="toctree-l4"><a class="reference internal" href="#get-setup-with-heroku">Get setup with Heroku</a></li>
<li class="toctree-l4"><a class="reference internal" href="#testing-your-setup">Testing your setup</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="setup_ubuntu.html">Linux</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="welcome.html">Welcome to ClojureBridge</a></li>
<li class="toctree-l1"><a class="reference internal" href="track1.html">Track 1</a></li>
<li class="toctree-l1"><a class="reference internal" href="track2.html">Track 2</a></li>
<li class="toctree-l1"><a class="reference internal" href="resources.html">Clojure Resources</a></li>
<li class="toctree-l1"><a class="reference internal" href="community.html">Connect with the Clojure Community</a></li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="index.html">ClojureBridgeMN Documentation</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="index.html">Docs</a> »</li>
<li><a href="setup.html">Installfest</a> »</li>
<li>Windows 10 Setup</li>
<li class="wy-breadcrumbs-aside">
<a href="_sources/setup_win10.txt" rel="nofollow"> View page source</a>
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">
<div class="section" id="windows-10-setup">
<h1>Windows 10 Setup<a class="headerlink" href="#windows-10-setup" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li>Start a command prompt</li>
<li>Get Java installed</li>
<li>Get Leiningen installed</li>
<li>Get Heroku installed (includes Git)</li>
<li>Test installation</li>
</ul>
<div class="section" id="starting-a-command-prompt">
<h2>Starting a command prompt<a class="headerlink" href="#starting-a-command-prompt" title="Permalink to this headline">¶</a></h2>
<p>For these instructions, and for much of the class, you will need to have a command prompt open. This is a text-based interface to talk to your computer. Click the “Windows” button in the bottom left and type “command” in the “Ask me anything” box. Choose the “Command Prompt” desktop app, like in this screenshot:</p>
<p><img alt="Starting a command prompt" src="_images/starting-command-prompt2.png" /></p>
<p>When you choose “Command Prompt,” your screen should look similar to this:</p>
<p><img alt="Command prompt" src="_images/command-prompt2.png" /></p>
<p>If you have never used the command prompt before, you may want to spend some time <a class="reference external" href="http://dosprompt.info/">reading up on command prompt basics</a>. For the rest of this setup, I will tell you to run commands in your command prompt. When I say that, I mean “type the command into the command prompt and press the Return key.”</p>
<p>On other operating systems, the command prompt is called the terminal. We will use the terms terminal, command prompt, and command line interchangably.</p>
</div>
<div class="section" id="installing-java">
<h2>Installing Java<a class="headerlink" href="#installing-java" title="Permalink to this headline">¶</a></h2>
<p>Go to <a class="reference external" href="http://leiningen-win-installer.djpowell.net/">the Leiningen Windows installer site</a>. You should see two links, one for installing Java and another for “leiningen-win-installer.” Click the Java link. Then, you should see a screen like the following:</p>
<p><img alt="First page of Java download" src="_images/java-download1.png" /></p>
<p>Click the button above “Java Platform (JDK),” as you can see in the above picture. Then you will come to a page that will have the following table on it:</p>
<p><img alt="Second page of Java download" src="_images/java-download2.png" /></p>
<p>Click the radio button to accept the license agreement, and then download one of the two Windows choices. If you are running 32-bit Windows, choose “Windows x86.” If you are running 64-bit Windows, choose “Windows x64.”</p>
<p>If you do not know if you are running 32-bit or 64-bit Windows, click the “Windows” button and type “system.” Choose “System.” (If that does not work, type “Control Panel” and choose “System” from the Control Panel screen.) You should see a window like the following:</p>
<p><img alt="Windows My Computer properties" src="_images/system-properties2.png" /></p>
<p>You should see if you are running 32- or 64-bit Windows beside “System Type.”</p>
<p>Once you have downloaded the right Java version, run the executable you downloaded to install Java. Follow the installation wizard.</p>
</div>
<div class="section" id="installing-leiningen">
<h2>Installing Leiningen<a class="headerlink" href="#installing-leiningen" title="Permalink to this headline">¶</a></h2>
<p>Leiningen is a tool used on the command line to manage Clojure projects.</p>
<p>Next, go back to <a class="reference external" href="http://leiningen-win-installer.djpowell.net/">the Leiningen Windows installer site</a> and download the file linked as “leiningen-win-installer.” Run this executable and follow the “Detailed installation” section at the Leiningen Windows Installer site. At the end of the installation, leave “Run a Clojure REPL” checked before you click “Finish.” If a terminal window opens that looks like the one on the Leiningen Windows installer site, then you are good to go.</p>
</div>
<div class="section" id="get-setup-with-heroku">
<h2>Get setup with Heroku<a class="headerlink" href="#get-setup-with-heroku" title="Permalink to this headline">¶</a></h2>
<p>Heroku is the tool we will use in order to put your application online where others can see it.</p>
<p>First, we need to create an account. Go to <a class="reference external" href="http://heroku.com">Heroku</a> and click the “Sign up” link.</p>
<p><img alt="Heroku step 1" src="_images/heroku-step1.png" /></p>
<p>You will be taken to a form where you need to enter your email address in order to sign up. Fill out that form, and you will be sent an email with a link to click to continue the signup process.</p>
<p><img alt="Heroku step 2" src="_images/heroku-step21.png" /></p>
<p>After clicking on the link, you will be directed to check your email for a comfirmation messages.</p>
<p><img alt="Heroku step 2" src="_images/heroku-step2a.png" /></p>
<p>An email from Heroku will contain a link to click which will confirm that the new account is connected to a valid email address.</p>
<p><img alt="Heroku step 2" src="_images/heroku-step2b.png" /></p>
<p>After clicking on the link in the email, you will be taken to another form where you will need to choose a password. Choose one and enter it twice.</p>
<p><img alt="Heroku step 3" src="_images/heroku-step31.png" /></p>
<p>After all that, go <a class="reference external" href="https://devcenter.heroku.com/articles/getting-started-with-clojure#set-up">here</a> and click “Download the Heroku CLI for Windows”</p>
<p><img alt="Heroku dashboard" src="_images/heroku-getting-started1.png" /></p>
<p>If you do not see this link on your dashboard, you can download the toolbelt from <a class="reference external" href="https://toolbelt.heroku.com/">toolbelt.heroku.com</a>.</p>
<p>You will download an .exe file. Run this executable to install the Heroku Toolbelt and follow all prompts from the installation wizard.</p>
<p>Now you can login to heroku the first time:</p>
<div class="highlight-none"><div class="highlight"><pre><span></span>clojurista@mylaptop$ heroku login
Enter your Heroku credentials.
Email: [email protected]
Password (typing will be hidden): ++++++++
Logged in as [email protected]
clojurista@mylaptop$
</pre></div>
</div>
</div>
<div class="section" id="testing-your-setup">
<h2>Testing your setup<a class="headerlink" href="#testing-your-setup" title="Permalink to this headline">¶</a></h2>
<p>You have set up Java, Leiningen, Atom, Git, and Heroku on your computer, all the tools you will need for this program. Before starting, we need to test them out. Make sure you have a command prompt (Windows) open for testing. We will just call this a terminal from now on.</p>
<p>Go to your terminal and run the following command:</p>
<p><code class="docutils literal"><span class="pre">git</span> <span class="pre">clone</span> <span class="pre">https://github.com/heroku/clojure-sample.git</span></code></p>
<p>This will check out a sample Clojure application from GitHub, a central repository for lots of source code. Your terminal should look similar to this picture:</p>
<p><img alt="Testing git clone" src="_images/testing-step12.png" /></p>
<p>Then run the command:</p>
<p><code class="docutils literal"><span class="pre">cd</span> <span class="pre">clojure-sample</span></code></p>
<p>This will put you in the directory with the source code for this sample bit of Clojure code. After that completes, run:</p>
<p><code class="docutils literal"><span class="pre">lein</span> <span class="pre">repl</span></code></p>
<p>This could take a long time, and will download many other pieces of code it relies on. You should see lines that start with <code class="docutils literal"><span class="pre">Retrieving</span> <span class="pre">...</span></code> on your screen. When it finishes, your terminal should look like the following:</p>
<p><img alt="Testing lein repl" src="_images/testing-step22.png" /></p>
<p>This is starting a REPL, which we will learn about soon. It’s a special terminal for Clojure. At the REPL prompt, type <code class="docutils literal"><span class="pre">(+</span> <span class="pre">1</span> <span class="pre">1)</span></code> and hit enter. Did you get the answer <code class="docutils literal"><span class="pre">2</span></code> back? You will learn more about that in the course.</p>
<p>For now, enter <code class="docutils literal"><span class="pre">(quit)</span></code> to quit the REPL. <em>(NOTE: you can also type <code class="docutils literal"><span class="pre">(exit)</span></code> or press the Control button and D button on your keyboard together)</em>.
This should take you out of the Clojure REPL and back to your normal terminal prompt.</p>
<p>We only have one more thing to test, Heroku.</p>
<p>Go back to your terminal. You should still be in the <code class="docutils literal"><span class="pre">clojure-sample</span></code> directory.</p>
<p>Run this command:</p>
<p><code class="docutils literal"><span class="pre">heroku</span> <span class="pre">create</span></code></p>
<p>There should be output about something being created. A URL will be displayed. Look at the following example:</p>
<p><img alt="Testing heroku create" src="_images/testing-step52.png" /></p>
<p>Next, run the following commands:</p>
<div class="highlight-none"><div class="highlight"><pre><span></span>git push heroku master
heroku open
</pre></div>
</div>
<p>Enter “yes” if you are asked if you are sure you want to connect.</p>
<p>Your browser should open (and take a long time to load) and you should see a website like the following:</p>
<p><img alt="Testing heroku working" src="_images/testing-step62.png" /></p>
<p>Congratulations! That website is running code you have on your computer that you have uploaded. You have actually made a very simple Clojure app, and your computer is all set up to make more.</p>
<div class="section" id="try-the-koans">
<h3>Try the koans<a class="headerlink" href="#try-the-koans" title="Permalink to this headline">¶</a></h3>
<p>If you’re a track 2 student, try to tackle running the <a class="reference internal" href="koans.html"><span class="doc">koans</span></a>.</p>
</div>
</div>
</div>
</div>
</div>
<footer>
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
<a href="setup_ubuntu.html" class="btn btn-neutral float-right" title="Linux Setup" accesskey="n">Next <span class="fa fa-arrow-circle-right"></span></a>
<a href="setup_win8.html" class="btn btn-neutral" title="Windows 8 Setup" accesskey="p"><span class="fa fa-arrow-circle-left"></span> Previous</a>
</div>
<hr/>
<div role="contentinfo">
<p>
© Copyright 2016 ClojureBridgeMN volunteers.
</p>
</div>
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'November 4-5, 2016',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="_static/js/theme.js"></script>
<script type="text/javascript">
jQuery(function () {
SphinxRtdTheme.StickyNav.enable();
});
</script>
</body>
</html>