Skip to content

lortza/puzzle_hints

Repository files navigation

README

This is a simple game-hints application that uses Sinatra to run dictionary searches. The supported games are in the models directory.

run server locally with ruby application.rb

browser:

Resources

If you want to use gems like pry in development only, you need to wrap them in an env flag like:

# application.rb

if settings.environment == :development
  require 'pry'
end

# or
require 'pry' if development?

Sinatra Tutorials

Routing

Stylesheets

Heroku

Deploying to Heroku

  • run heroku config:set RACK_ENV=production
  • ensure any development gems are inside of an settings.environment == :development in the application.rb
  • add a Procfile with web: bundle exec ruby application.rb -p $PORT

Testing

There are currently no tests for this application. When it is time to write tests, I will need to install rspec and include a Rakefile with test (and prod?) scripts.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published