Setting up the web app: Difference between revisions

Undo revision 8701 by 109.230.216.225 (talk)
imported>Jesstess
No edit summary
imported>Pcollins
(Undo revision 8701 by 109.230.216.225 (talk))
 
(21 intermediate revisions by 6 users not shown)
Line 25:
them your name and email address and set a password that you'll use to
log into the account.
 
Note! alwaysdata won't work with Internet Explorer 6. If you use IE6, let a staff member know.
 
* [http://alwaysdata.com/ Go to alwaysdata.com]
Line 30 ⟶ 32:
* Choose the "Pack gratuit (10 Mo)". It means "Free account (10 megabytes of storage)".
* Choose the '''monthly''' payment plan.
 
'''Note''': They will send you your password by email. If you feel
queasy about receiving your password by email, then use one that you
don't mind receiving.
 
On the back of this piece of paper, take a moment to write down the
Line 43 ⟶ 41:
Github.com is the most popular git-based service you can use to store files.
 
Go to http://github.com/ and create an account. You can choose whatever username you want. OnceFor itnow, isjust configuredcreate an account, and then you can continue on through these setup instructions.
 
=== Testing ===
Line 56 ⟶ 54:
 
* [[Boston Python Workshop/Friday handout/OS X 10.6 or 10.5|OS X 10.6 or 10.5]] (Snow Leopard or Leopard). [http://www.wiki.devchix.com/index.php?title=Determining_your_OS_X_version Click here if you're not sure what version of OS X you have].
* [[Boston_Python_workshop/Friday_handout/Windows|Windows]] (XP, Vista, or 7)
* [[Boston_Python_workshop/Friday_handout/Ubuntu and Debian|Ubuntu and DebianUbuntu_Debian_Fedora]]
 
== Section 3: ColorWallConfiguring your accounts on the web Setup==
 
You'll be writing effects for a ColorWall like the one in this video!
{{#ev:vimeo|16522975}}
 
<ol>
<li>Download the ColorWall project from http://mit.edu/jesstess/www/BostonPythonWorkshop
<ul>
<li>Windows users, try http://mit.edu/jesstess/www/BostonPythonWorkshop/ColorWall.zip first. The file should automatically get uncompressed when you download it.</li>
<li>OS X and Linux users can use either the .zip or .tar.gz file.</li>
</ul>
</li>
<li>The ColorWall project has no dependencies to install on common, modern Windows, OS X, and Linux* distributions. To confirm that you have no dependencies to install, at Python prompt run:
 
<pre>import Tkinter</pre>
 
If that command results in an <code>ImportError</code>, let a staff member know and we'll help get your dependencies set up. (*On some Debian installation, when you <code>import Tkinter</code> it will tell you that you need to install the <code>python-tk</code> package, which you should do)</li>
<li>Run the example effects</li>
</ol>
 
== Section 4: Configuring your accounts on the web ==
 
=== Alwaysdata: Enable SSH ===
Line 86 ⟶ 64:
* In the left-hand side, underneath '''Remote access''', click '''SSH'''
* Click the gear icon for your user
* Click the "Enabled" checkbox to enable ssh access. [hint: you can use a different passphrase than the SSH-key on localhost]
* Click ''Submit''!
 
Line 93 ⟶ 71:
Follow Github's instructions:
 
* Go to http://help.github.com/key-setup-redirect
* Go to https://github.com/account (log in if you have to), click the "SSH Public Keys" tab, and click "Add another public key"
* Follow ''just'' that section.
 
To find your public key on Windows, type this from a GitBash:
Line 113 ⟶ 89:
If it worked, you'll see a new repository listed in your Github.com account, and it will have a README file explaining what it is.
 
== Section 54: Deploying your first web application ==
 
Remember how you made a Django site earlier in the directions? The volunteers made a site like, too, and we added some special configuration to make it work well with Alwaysdata.com.
Line 122 ⟶ 98:
 
* Go to https://github.com/paulproteus/workshop_mysite
* Click the "Fork" icon which brings you to your personal fork of the project.
* Go to your personal fork of the project.
 
=== Clone it to alwaysdata.com ===
Line 136 ⟶ 111:
git clone
 
* Now '''paste''' in the repository URL, and hit '''enter'''. The full command will look something like "git clone git@://github.com:/paulproteus/workshop_mysite.git".
 
=== Configure alwaysdata.com to serve your site ===
Line 144 ⟶ 119:
* Go to the Alwaysdata.com '''Domains''' administration page: https://admin.alwaysdata.com/domain/
* Find your domain, and click the gear to '''edit'''.
* Enter this/workshop_mysite/public/ into the form as the '''Root directory''':
 
=== Make sure alwaysdata.com is set up properly to serve your site ===
 
* On the '''domain''' configuration page, grab the 'name' which is your personal alwaysdata.net web address.
* Enter that into your browser's address bar (type or copy/paste). You should see the Django welcome page message congratulating you.
 
===Almost Done!===
/workshop_mysite/public/
'''Go to''' [https://openhatch.org/wiki/Boston_Python_workshop/Friday_handout#Web_Developer:_You.27re_ready_for_Saturday.21 Web App Section] of Friday's installation page and finish up!
Anonymous user