Hello World
Let's start looking at the basics of a Mack application by first generating one.
$ mack my_first_app
The will generate a folder structure similar to this:
app/
controllers/
default_controller.rb
helpers/
controllers/
default_controller_helper.rb
views/
application_helper.rb
models/
views/
default/
index.html.erb
layouts/
application.html.erb
config/
configatron/
default.rb
development.rb
production.rb
test.rb
database.yml
initializers/
gems.rb
routes.rb
db/
migrations/
lib/
tasks/
public/
favicon.ico
images/
javascripts/
stylesheets/
scaffold.css
Rakefile
test/
controllers/
default_controller_spec.rb
helpers/
controllers/
default_controller_helper_spec.rb
views/
application_helper_spec.rb
models/
spec_helper.rb
spec.opts
vendor/
plugins/
This has generated everything you need to get started. If we start the server we should see a 'Welcome' page on http://localhost:3000
$ mackery server