Welcome to the Sports Betting App! This is a Ruby on Rails application that allows users to place and track bets on sports events.
Ensure you have the following installed:
- Ruby (Check version with
ruby -v
) - Rails (Check version with
rails -v
) - Bundler (
gem install bundler
if not installed) - PostgreSQL (or your preferred database)
- Redis (for Sidekiq background jobs)
- Sidekiq (for background processing)
git clone https://github.com/SirNova01/Sports-Betting-App.git
cd Sports-Betting-App
bundle install
Make sure PostgreSQL is running, then create and migrate the database:
rails db:create db:migrate
Run the application:
rails server
It should now be accessible at http://localhost:3000/
.
redis-server
In a separate terminal, run:
bundle exec sidekiq
Sidekiq will start processing background jobs.
- If using Docker, you can run Redis using:
docker run -d -p 6379:6379 redis
- If you encounter any issues, check the logs:
tail -f log/development.log