Blackjack by Dave is an exercise in OOP reworked into a Sinatra web app. The original exercise was given as an assignment at Launch Academy, a web development bootcamp, and the transformation was begun as a side project in the precious free time during the program. While it is still a work in progress, this project has been an excellent opportunity to teach myself how to use and test sessions
, configure a Sinatra app to deploy to Heroku, and have a stab at more advanced CSS.
In order to run this application locally, you must at least have Ruby 2.3.3 installed.
$ ruby -v
=> ruby 2.3.3
This project uses Bundler
as its dependency manager. To install the necessary gems:
$ bundle
In order to run the app in a development server, run the following command in your terminal:
$ ruby server.rb
Then, navigate to localhost:4567
.
The automated testing system is run with RSpec, with some help from Capybara and some other minor testing Gems. To run the test suite:
$ rspec
NOTE: RSpec may get stuck on a CSS selector on one of the feature tests. This bug happens only on the first run of that particular test and then never again. I am currently working on a fix for this.
This application is deployed using Heroku using these instructions: https://devcenter.heroku.com/articles/git
Submit a PR! I'd love any and all constructive feedback.
This project is licensed under the MIT License - see the LICENSE.md file for details
Thanks to Launch Academy, and especially to Kylee Acker for giving me the tools to get this off the ground.