REST API for Diagram Block. Server should allow for easy manipulation:
- -Electrical Drawings
- -Hydraulic Drawings
- -Mechanical Drawings
- -Easy Search by cable, pipe, element, tag name etc.gs
For now main focus of application is simple creating, delatating, updating (CRUD) elements with many - to - many relations.
"Under the hood" application is using TypeORM and NestJS, preferring Domain driven desing, and Onion Architecure, so there is several layers:
- Core -Entity(Domain)
- Infrastructure- Custom Repository with ORM
- Infrastructure- Services with Data Transfer Object (DTO)
For better scaling I am considering to use auto mapper to automatically map DTO-Entity.
All e2e tests currently are against Database (MySQL), because I would like to be sure that all operation between database and repository are correct. Especially Cascade Removing.
Project using .env WHICH ARE NOT INCLUDED IN THIS REPO.
###### development
$ npm run start
###### watch mode
$ npm run start:dev
###### production mode
$ npm run start:prod
###### e2e tests
$ npm run test:e2e