This repo holds my answers to a technical test. It has three parts.
| Part | What it is |
|---|---|
| Coding challenge | A web app that solves the HackerRank Cube Summation problem. You upload a text file and get the results. |
| Code refactoring | A refactor of a given piece of Java code, with notes on the bad practices found (in Spanish). |
| Questions | Answers to the theory questions (in Spanish). |
coding-challenge/cube-summation- REST API with Spring Boot 1.5.9 and Java 8.POST /cube/uploadtakes the file and runs eachUPDATEandQUERYoperation. Each operation is a Strategy class.coding-challenge/cube-front- Angular 5 source of the front. A built copy is incube-summation/src/main/webapp.
You need Java 8 and Maven 3.
Run the tests:
cd coding-challenge/cube-summation
mvn testStart the API (port 9999):
mvn spring-boot:run
curl -F file=@src/test/resources/sample-input.txt http://localhost:9999/cube/uploadStart the API together with the bundled front. The front expects the /CS path:
mvn package
java -jar target/CS.war --server.context-path=/CSThen open http://localhost:9999/CS/.
GitHub Actions runs mvn test for cube-summation with Java 8 on every push and pull request.
See .github/workflows/ci.yml.