Table of Contents
No Time for Heroes is a card game in which each participant takes the role of an archetypal hero with the goal of being the one who gets the most points by eliminating orcs. The project arises as a way to learn and practice the technologies used in the development of a web application, being the main project of the subject "Design and Testing I" of the Software Engineering degree at the University of Seville.
The project is divided into two parts, the server and the client. The server is a REST API developed in Java with Spring Boot, which is responsible for managing the game logic and the database. The client is a web application developed in React.js, which is responsible for the user interface and the communication with the server.
The development has been carried out in an agile way, using the Scrum methodology. It has been developed in a team of 5 people, with the roles of Product Owner, Scrum Master and 3 developers.
As this application is split in two services (spring-boot for backend and database and react for frontend), we need to initialize both services individually.
From the source folder, navigate to the spring-boot directory:
cd ./spring-boot/
Now we execute the service with the appropiate maven command:
mvn spring-boot:run
From here on out, the spring-boot proyect will be located at localhost:8080, with the console at localhost:8080/h2-console.
To access the console follow this image:
Now, for the client. Similar to spring-boot, we navigate to the /react
directory:
cd ./react/
Now we execute the service with the appropiate nodejs command:
npm run build
After that, we will se a message like this one:
The build folder is ready to be deployed.
You may serve it with a static server:
npm install -g serve
serve -s build
Following these steps, we will see the last message, telling us that everything was OK:
ββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β Serving! β
β β
β - Local: http://localhost:3000 β
β - On Your Network: http://192.168.1.48:3000 β
β β
β Copied local address to clipboard! β
β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββ
The application is now ready to run. Enjoy!
AndrΓ©s DurΓ‘n - @andresdt - [email protected]
Project Link: https://github.com/andrsdt/no-time-for-heroes