-
Login or Create an account
- Login: Click on the Login link to log in using your GitHub account.
- Create a New Account: If you don't have an account, click on the Create New Account link to sign up.
-
Choosing Units for Battle
- Choose Units: Click on the Choose Units link to select your attacker and defender units.
- Search for Units: Use the dropdown menu to select a faction and click Search For Units.
- Select Units: Review the list of units and choose one for the attacker and one for the defender by selecting the corresponding radio buttons.
- Click Submit to finalize your selection.
-
Starting the Battle
- Once you have selected both attacker and defender units, click the Start Fight button to initiate the battle.
-
After the Battle, you will see battle results
- The number of wound dealt.
- If any units were killed during the attack.
- A message indicating the outcome of the battle
-
Click "Prepare the Next Battle" to set up a new battle.
-
Enjoy the game and may your strategies lead you to victory in the Warhammer 40K Battlegrounds!
The front-end of this project uses Ruby on Rails 7.1.3
First, clone the repository to your computer
git clone https://github.com/turing40kconsultants/wh40k_Battlegrounds_fe
Next, install all of the Gems
bundle install
Create the necessary databases -
rails db:{create,migrate,seed}
Finally, start the development server
rails s
and open a web browser with URL localhost:3000
. Keep in mind that the back end of this application must be running on localhost:5000
for the front end to function correctly. For instructions on how to run the back-end server, see the back end GitHub page.
Run the test suite to diagnose issues. Keep in mind that the back end must be set up correctly and serving on localhost:5000
for these tests to pass -
bundle exec rspec
- Rails 7.1.3
- Ruby 3.2.2
- Faraday
- RSpec
- Bootstrap 5.3.2
- sassc-rails
Clyde Autin | clydeautin | LinkedIn
Chee Lee | cheeleertr | LinkedIn
Luis Aparicio | LuisAparicio14 | LinkedIn