Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 1.64 KB

README.md

File metadata and controls

29 lines (19 loc) · 1.64 KB

hexa-archi-exercise

This repository is a backend project based on Quarkus and MongoDB, which allows to manipulate todos, thanks to a CRUD API.

Run the application

In order to run the application, you need to install java and quarkus-cli in your machine. Please check the following documentation if it is not already the case:

Then, you can run the backend in dev using:

quarkus dev

The application will be available in the port 8080.

Note that you can test the API using the postman collection located there.

Exercise instructions

Before starting the exercise, you should of course get familiar with Quarkus and MongoDB basics.

  1. As a first task, please edit the API so that we can filter by tag, without considering case matching and accents (ex: 'Santé' should match with 'sante'). Also, we would like to be able to specify multiple tags as a parameter.
  2. Then, add 3 users: 'Ewen' & 'Sebastien' (two regular users) and 'Nicolas', (an admin). A regular user should be able to add/modify/delete/get its own todos, while the administrator has full rights. Please update the resources and entities accordingly.
  3. Finally, refactor the application to use the hexagonal infrastructure. NB: Propose a system to make sure that there is no regression.

Good luck ! ;)