Make It So is a command line utility that makes it easy to create starting points for all apps Ruby.
Install it yourself as:
$ gem install make_it_so
Make It So has multiple options to help you get started. You can get up and running with Rails, Sinatra, or Gosu without configuration issues. If you would like to see a list of options:
make_it_so
In the terminal, run:
make_it_so rails <app_name>
Then run:
yarn install
bundle exec rake db:create
bundle exec rake db:migrate
By default, the generator will create a Rails app with the following options activated:
To take advantage of view-specific javascript, inject a script tag at the end of the body tag. Javascript should always be the last thing loaded on the page. In view logic you can do the following:
<%= content_for :extra_footer do %>
<script type="text/javascript">
var widget = new Something.Widget('foo');
</script>
<% end %>
Using the --js-test-lib
flag, it is also possible to set up a Karma/Jasmine test framework instead of Jest (--js-test-lib karma
) or to omit either framework (--js-test-lib false
).
In the terminal, run:
make_it_so sinatra <app_name>
By default, the generator will create a sinatra root complete with an RSpec configuration.
In the terminal, run:
make_it_so gosu <app_name>
By default, the generator will create a gosu template complete with an RSpec configuration.
The tree structure looks like:
GosuGame
├── Gemfile
├── README.md
├── game.rb
├── img
├── lib
│ ├── bounding_box.rb
│ └── keys.rb
└── spec
└── spec_helper.rb
To learn more about Gosu development read through this tutorial
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)