Back-End test to Enext Consultancy. This repository contains the code of task 1, 2, 3 and plus, describe in https://gist.github.com/sergiofillipi/d049634d4b7d0cb01812322de51c6239.
java --version
If you have, something like that will apear: java XX XXXX-XX-XX (a message about java version). To this test, we will need java 14 (https://www.oracle.com/java/technologies/javase-jdk14-downloads.html). After check, clone the repository and enter in the repository folder using cd folder/ or cd .. . In the root directory, enter in target folder (cd target/) and run:
java -jar test-0.0.1-SNAPSHOT.jar
The program will start. You will have 4 options: 1 shows the games report, 2 shows all players ranking, 3 will run api and 4 will show Deaths reports. In option 3, a server will be create in port 8080. To access the rest, make a get request to http://localhost:8080/api/game/{id} and a JSON of game searched by id typed will be showed.
To change this code and build again, you will need maven (https://maven.apache.org/download.cgi) and, in the root directory, run the follow comand:
mvn clean package
- ✅ Email: christianbetta@gmail.com
- ✅ Telephone: (+55) 11 99311-8482
- ✅ Brasil - São Paulo - SP