!SLIDE
- Add topics
- Vote on a topic
- Register and login
!SLIDE
!SLIDE
rails suggestorama
-m http://gist.github.com/194076.txt
!SLIDE
</tr>
<tr>
<td>Rakefile</td>
<td>This file contains batch jobs that can be run from the terminal.</td>
</tr>
<tr>
<td>app/</td>
<td>Contains the controllers, models, and views for your application. You will mostly work here.</td>
</tr>
<tr>
<td>config/</td>
<td>Configure your application’s runtime rules, routes, database, and more.</td>
</tr>
<tr>
<td>db/</td>
<td>Shows your current database schema, as well as the database migrations. </td>
</tr>
<tr>
<td>doc/</td>
<td>In-depth documentation for your application.</td>
</tr>
<tr>
<td>lib/</td>
<td>Extended modules for your application (not covered today).</td>
</tr>
<tr>
<td>log/</td>
<td>Application log files.</td>
</tr>
<tr>
<td>public/</td>
<td>The only folder seen to the world as-is. This is where your images, javascript, stylesheets (<span class="caps">CSS</span>), and other static files go.</td>
</tr>
<tr>
<td>script/</td>
<td>Scripts provided by Rails to do recurring tasks. We'll use some today.</td>
</tr>
<tr>
<td>test/</td>
<td>Unit tests, fixtures, and other test apparatus.</td>
</tr>
<tr>
<td>tmp/</td>
<td>Temporary files</td>
</tr>
<tr>
<td>vendor/</td>
<td>A place for third-party code. </td>
</tr>
File/Folder | Purpose |
---|---|
README | This is a brief instruction manual for your application. |
!SLIDE
!SLIDE code
ruby script/server
http://localhost:3000
!SLIDE
- modify public/index.html
- run it again
!SLIDE
- we'll create a local git repository
- then deploy to heroku
!SLIDE code
git init
git add .
git commit -m 'basic web application'
!SLIDE code heroku create git push heroku master
!SLIDE