# Tournament API

## Initalisation

### Pre-requisites

You need to have Docker and AWS CLI installed on your machine

### How to start the database

In `docker/db` folder, run the following command:

```bash
docker compose up -d
```

### How to start the API

Place yourself at root and start

```bash
docker compose up -d
```

// or with cmd

## Available endpoints

## Technical choices

- I chose ... because ...

## I want to ensure tests are running

## Left to do

- [x] setup dynamo DB
- [x] faire la connexion avec Dynamo
- 1er endpoint
    - [x] créer l'entité joueur
    - [x] créer le repo et le connecter à la BD
    - [x] tester unitairement le service
    - [ ] tester l'intégration complète
    - [x] endpoint fonctionnel pour l'ajout d'un joueur avec test
        - [ ] tests d'intégration
        - [ ] tests unitaires
- [x] tous les endpoints demandés
- [ ] gestion de la sécurité

Dans l'ordre :

- Amélioration du fonctionnel
    - Routes factorisées
    - DTO
    - Appels à la BD
- Amélioration des tests
- Amélioration de la sécurité
- Déploiement en prod serein

## Going further

- Database migration tool
- ...