Ruby Slots is a Ruby on Rails application designed to simulate a slot machine experience. This project demonstrates the implementation of game logic, state management, and user interaction within a Rails environment.
- Slot Machine Logic: Core mechanics for spinning reels and calculating payout lines.
- Web Interface: Responsive UI for user interaction.
- Modern Asset Management: Utilizes modern Rails frontend tools.
0123.mp4
- Backend: Ruby on Rails
- Database: PostgreSQL
- Frontend: HTML5, tailwindcss, JavaScript
Before you begin, ensure you have the following installed on your machine:
- Ruby (Version specified in
.ruby-version) - PostgreSQL
Alternatively, you can use Docker to run the application without installing these dependencies locally.
-
Clone the repository:
git clone https://github.com/Null-logic-0/slots.git cd slots -
Install Ruby dependencies:
bundle install
-
Create .env file:
PG_PASSWORD=your-local-db-password DATABASE_URL=your-production-db-password -
Setup the database:
rails db:create rails db:migrate
-
Start the development server: Since a
Procfile.devis present, use the provided bin script for the most robust development experience:rails s
-
Visit the app: Open your browser and navigate to
http://localhost:3000