-
Notifications
You must be signed in to change notification settings - Fork 2
Architecture
The app has a layered architecture and modular.
This layer management the authentication. The api use basic authentication and api key for sing in and generate a JSON Web Token (jwt). All routes use bearer token authentication. This layer maintain high security, and can be improved without affecting the routes.
This layer management the endpoints. This is modular, each endpoint is independent. Allowed routes are:
This route handles authentication.
This route handles users.
This route handles enables medical exams.
This route handles patients orders.
This route handles results of test.
This route handles test results pdf.
This route handles messages.
Mongoose and boom are libraries that are used to validate schemas and handle errors.
The structure of the files respected the principle of sole responsability.
This design pattern that is scalable and optimized
We are using Mongo Atlas cloud as a one as single layer to optimized and is scalable.
Sentry used capture all our errors.