Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/teddy55codes/trainingexercisetracking
- Owner: Teddy55Codes
- Created: 2024-04-08T15:29:53.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-04-09T14:33:28.000Z (10 months ago)
- Last Synced: 2024-11-20T01:34:44.126Z (2 months ago)
- Topics: coding-challenge, entity-framework, mapsui, mssql, wpf
- Language: C#
- Homepage:
- Size: 289 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.