Create squads, heroes and join the battle for justice!
Ben Ruwel
This is a fun app that allows users to create squads with custom heroes and with custom strengths and weaknesses.
A hero can only belong to one squad if the member list is not full.
This is program is wholely written in Java and built with
- Oracle Java 11.8
- Gradle 6.5
- Spark 2.6.0
- Handlebars 2.5.5
- Apache Maven 2.3.2
- Heroku Plugin 3.0.2
- JUnit4
To get a local copy up and running follow these simple example steps.
In order to build this app locally, first make sure you have all the programs listed in Built with
-
Clone the repo
$ git clone https://github.com/benruwel/HeroSquad.git
-
Wait gradle to install all the dependencies automatically
To build this project:
-
Open your preferred terminal
-
In your project's root directory run the project with
$ gradle run
-
Then navigate to
localhost:4567
to view the page
This project is used to illustrate the concept of creating Objects within Objects. In our case scenario, a single instance of a Hero object should be created in only one other instance of the Squad object.
POST squads/new
and POST heroes/new
methods create a new instance of the squad and hero squad respectively.
POST heroes/new
creates an object within an already created squad instance using the the instance's id. This id is set equal to its position on the Arraylist object which consists of all the created squad instances.
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
My email - ruwelmwangi@gmail.com
Project Link: https://herosquad-benruwel.herokuapp.com/