Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/teddy55codes/trainingexercisetracking

A coding challenge i did at work
https://github.com/teddy55codes/trainingexercisetracking

coding-challenge entity-framework mapsui mssql wpf

Last synced: 4 days ago
JSON representation

A coding challenge i did at work

Awesome Lists containing this project

README

        

# TrainingExerciseTracking
The description of the coding challenge can be found [here](Resources/CodeChallenge.pdf).

## Setup
Setting up MSSQL with docker:
```bash
docker pull mcr.microsoft.com/mssql/server:2022-latest
docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=Sml123456789" -p 1433:1433 -d mcr.microsoft.com/mssql/server:2022-latest
```
The database migration will be applied automatically when the application starts.

## Architecture

### TypeDependency Diagram
![TypeDependencyDiagram](Resources/TypeDependencyDiagram.png)

### Database EER Diagram
![DatabaseEERDiagram](Resources/DatabaseDiagram.png)

## API
The api launches on port 5000 and has 2 POST endpoints:
* /movements\
example request body:
```json
{
"longitude": 7.321437243553244,
"latitude": 44.61757413013524,
"participantNumber": 1337
}
```
* /participants\
example request body:
```json
{
"number": 1337,
"rank": "Normal",
"country": "USA",
"information": "This is a normal participant."
}
```

These endpoints can be used to inject data.