Giter VIP home page Giter VIP logo

psa-recursos-tribu2's Introduction

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

psa-recursos-tribu2's People

Contributors

mpata2000 avatar jpdicomo avatar

Stargazers

 avatar

Watchers

Lucas Gabriel avatar  avatar

Forkers

jpdicomo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.