Skip to content

About

Project built in order to implement the test for the company Rappi

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

30 Commits

Folders and files

Repository files navigation

Rappi technical test

CI

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 in short

  • coding-challenge/cube-summation - REST API with Spring Boot 1.5.9 and Java 8. POST /cube/upload takes the file and runs each UPDATE and QUERY operation. Each operation is a Strategy class.
  • coding-challenge/cube-front - Angular 5 source of the front. A built copy is in cube-summation/src/main/webapp.

How to run

You need Java 8 and Maven 3.

Run the tests:

cd coding-challenge/cube-summation
mvn test

Start the API (port 9999):

mvn spring-boot:run
curl -F file=@src/test/resources/sample-input.txt http://localhost:9999/cube/upload

Start the API together with the bundled front. The front expects the /CS path:

mvn package
java -jar target/CS.war --server.context-path=/CS

Then open http://localhost:9999/CS/.

CI

GitHub Actions runs mvn test for cube-summation with Java 8 on every push and pull request. See .github/workflows/ci.yml.

About

Project built in order to implement the test for the company Rappi

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages