Skip to content

Modulo de Recursos de PSA para la tribu 2 por el squad 11

Notifications You must be signed in to change notification settings

mpata2000/PSA-Recursos-Tribu2

Repository files navigation

PSA Recursos - Tribu 2 - Suqad 11

codecov Tests Linters Deploy

Technologies

Deployed DOCS

https://psa-tribu2-recursos.herokuapp.com/docs

Architecture

Directory structure (based on Onion Architecture):

├── main.py
├── app
│   ├── domain
│   │   ├── hours
│   │   │   ├── hours.py  # Entity
│   │   │   ├── hours_exception.py  # Exception definitions
│   │   │   └── hours_repository.py  # Repository interface
│   │   └── resources
│   │       ├── resources.py  # Entity
│   │       └── resources_exception.py  # Exception definitions
│   ├── infrastructure
│   │    ├── hours
│   │    │   ├── hours_dto.py  # DTO using SQLAlchemy
│   │    │   ├── hours_query_service.py  # Query service implementation
│   │    │   └── hours_repository.py  # Repository implementation
│   │    └── database.py
│   ├── presentation
│   │   └── schema
│   │       ├── hours
│   │       │   └── hours_error_message.py
│   │       └── resources
│   │           └── resources_error_message.py
│   └── usecase
│       ├── hours
│       │   ├── hours_command_model.py  # Write models including schemas of the RESTFul API
│       │   ├── hours_command_usecase.py
│       │   ├── hours_query_model.py  # Read models including schemas
│       │   ├── hours_query_service.py  # Query service interface
│       │   └── hours_query_usecase.py
│       └── resources
│           └── resources_query_model.py  # Read models including schemas
└── tests

Run

make run

Access api swagger at: http://127.0.0.1:8000/docs#/

Tests

make test

Reformat

make fmt

Lint

make lint

Test BDD

Make sure the api is running

make run

and run the test with

make testBDD

About

Modulo de Recursos de PSA para la tribu 2 por el squad 11

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published