Boston Python Workshop/Friday handout/Windows: Difference between revisions
Content added Content deleted
imported>Paulproteus No edit summary |
|||
Line 93: | Line 93: | ||
* Your brand-new public key is now stored at <code>~/.ssh/id_rsa.pub</code>. |
* Your brand-new public key is now stored at <code>~/.ssh/id_rsa.pub</code>. |
||
== Django == |
|||
== Verify you can create a new Rails app == |
|||
* Open a new GitBash window and type the following with a return at the end of each line: |
|||
* Open a new GitBash window. |
|||
mkdir ~/Desktop/rails |
|||
cd ~/Desktop/rails |
|||
curl -L http://www.djangoproject.com/download/1.2.5/tarball/ -o Django-1.2.5.tar.gz |
|||
rails new test_app |
|||
tar zxvf Django-1.2.5.tar.gz |
|||
* The first two commands should produce no output. The last command's output is voluminous. :) |
|||
cd Django-1.2.5 |
|||
* Once that's finished, type the following in the GitBash window with a return at the end of each line: |
|||
python setup.py install |
|||
cd test_app |
|||
rails server |
|||
* The first command should produce no output. The second command will put out a bunch of output, then just sit there until you cancel it (2 steps from now). |
|||
* In your browser, go to http://localhost:3000 ([http://wiki.devchix.com/images/successful-rails-install.jpg screenshot of successful install] |
|||
* Back in the GitBash window where you ran <code>rails server</code>, type control-c to kill(stop) the server. |
|||
== Verify your database is set up == |
== Verify your database is set up == |
||
Line 114: | Line 110: | ||
rails server |
rails server |
||
</pre> |
</pre> |
||
In the browser, visit '''http://localhost:3000/users''' |
In the browser, visit '''http://localhost:3000/users''' |
||
click ''New user'' to create a user to make sure we can save to the database. (The window where you ran |
click ''New user'' to create a user to make sure we can save to the database. (The window where you ran |