Play a 'realistic' slot machine using your browser. This slot machine has much better odds than a traditional slot machine in Las Vegas. See how high you can get your balance!
- Create an account with a username and password.
- Make pretend deposits and withdrawals.
- Adjust bet amount.
- Spin to win!
- View last 5 transactions (deposits and withdrawals).
- View payout table.
Please use the following link to see an overview of the webapp on YouTube: https://youtu.be/9v5WjbOkbS4
My blog also talks about this project here: https://acapp-dev.github.io/javascript_project_-_slot_machine
Written with Ruby version 2.6.1p33 using Javascript and Ruby on Rails API Framework.
Uses a Sqlite3 database. To refresh or set up the database, use the following steps:
$ rails db:drop
$ rails db:migrate
$ rails db:seed
Download the code for this webapp using:
$ git clone https://github.com/ACAPP-dev/slots.git
Update Gem files using command:
$ bundle install
or
$ bundle update
You can use:
$ rails s
to start webserver.
Use:
$ rails c
to enter a console session for debugging and/or exploring.
Start Webpage (from project directory):
$ open frontend/index.html
Bug reports and pull requests are welcome on GitHub at need. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
Written by Andrew Capp in conjunction with Flatiron Academy - June 2020
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the Code of Conduct.