Skip to content

Simple NestJS REST API application for block diagram application.

Notifications You must be signed in to change notification settings

tosiek88/api_for_block_diagrams

Repository files navigation

Description

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.

Running the app

###### development

$ npm run start

###### watch mode

$ npm run start:dev

###### production mode

$ npm run start:prod

Test

###### e2e tests

$ npm run test:e2e

About

Simple NestJS REST API application for block diagram application.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published