-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
79 lines (56 loc) · 2.44 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
FleetUp Maintenance Web API
======
Basic web api that keep track of maintenance tasks for vehicles in order to keep them working and increasing company's production levels.
This a basic proof of concepts; CQRS,DDD, AGGREGATES, SOLID
We have applied Clean Code Architecture for this project. This is
Projects:
+Soinsoft.FleetUp.Domain.Contracts
generic repository interface (one per aggregate)
+Soinsoft.FleetUp.Domain.Entities
Entities/Aggregates to be used across the solution
+Soinsoft.FleetUp.Application.Contracts
Interfaces for services
+Soinsoft.FleetUp.Application.Business
Commands, commands handlers, querys, querys handlers, Dtos, and their related validators
+Soinsoft.FleetUp.Infraestructure.Persistence
Entitty Framework persistence using SQLLite. migrations, generic repository, etc
+Soinsoft.FleetUp.Presentation.WebAPI
Web API for exposing functionality using mediator, root app composition, services, etc.
This project can be used as a starting point to build scalable applications and easy to maintain.
Every vehicle has a group of maintenance tasks to be applied every x miles.
Database:
For this project we worked with SqlLite but since this implemented via Entity Framework, you can switch to SQL Server/Postgresql.
Model:
Asset: is the vehicle used for scheduling maintenance routines
Maintenance: is the taks to be performed on vehicles in order to keep them working safely and improve performance
WorkOrder: details of executed maintenance on vehicles.
RESTful end points:
POST /api/v1/asset/
GET /api/v1/asset/{Id}
GET /api/v1/asset/{Id}/maintenance/
GET /api/v1/asset/{Id}/workorders/
GET /api/v1/asset/
PUT /api/v1/asset/{Id}
DELETE /api/v1/asset/{Id}
POST /api/v1/maintenance/
GET /api/v1/maintenance/{Id}
PUT /api/v1/maintenance/{Id}
DELETE /api/v1/maintenance/{Id}
POST /api/v1/workorder/
GET /api/v1/workorder/{Id}
PUT /api/v1/workorder/{Id}
DELETE /api/v1/workorder/{Id}
Project dependencies:
A-Soinsoft.FleetUp.Domain.Entities | none
B-Soinsoft.FleetUp.Domain.Contracts | none
C-Soinsoft.FleetUp.Application.Contracts | A, B
D-Soinsoft.FleetUp.Application.Business | A, B
E-Soinsoft.FleetUp.Infraestructure.Persistence | A, B, C, D
F-Soinsoft.FleetUp.Presentation.WebAPI | E, C, D
How to make it work:
>dotnet restore
>dotnet run Soinsoft.FleetUp.Presentation.WebAPI
Load PostMan at https://localhost:5001/api/v1/asset/
Download and import collection for postman at <Link>
For questions/comments: [email protected]
Happy clean coding!! :)