Skip to content

Commit 0251a09

Browse files
author
Esteban Echeverry
committed
Merge branch 'feat/05_reports' into feat/06_main
2 parents 2d9c966 + 4d8ceb1 commit 0251a09

File tree

20 files changed

+431
-50
lines changed

20 files changed

+431
-50
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,4 @@ ENV/
101101
.mypy_cache/
102102

103103
# vscode
104-
.vscode
104+
.vscode/

docs/Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line.
5+
SPHINXOPTS =
6+
SPHINXBUILD = sphinx-build
7+
SPHINXPROJ = CleanArchitecturePython
8+
SOURCEDIR = .
9+
BUILDDIR = _build
10+
11+
# Put it first so that "make" without argument is like "make help".
12+
help:
13+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14+
15+
.PHONY: help Makefile
16+
17+
# Catch-all target: route all unknown targets to Sphinx using the new
18+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19+
%: Makefile
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/conf.py

Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
#!/usr/bin/env python3
2+
# -*- coding: utf-8 -*-
3+
#
4+
# Clean Architecture Python documentation build configuration file, created by
5+
# sphinx-quickstart on Thu Feb 8 19:00:03 2018.
6+
#
7+
# This file is execfile()d with the current directory set to its
8+
# containing dir.
9+
#
10+
# Note that not all possible configuration values are present in this
11+
# autogenerated file.
12+
#
13+
# All configuration values have a default; values that are commented out
14+
# serve to show the default.
15+
16+
# If extensions (or modules to document with autodoc) are in another directory,
17+
# add these directories to sys.path here. If the directory is relative to the
18+
# documentation root, use os.path.abspath to make it absolute, like shown here.
19+
#
20+
# import os
21+
# import sys
22+
# sys.path.insert(0, os.path.abspath('.'))
23+
24+
25+
# -- General configuration ------------------------------------------------
26+
27+
# If your documentation needs a minimal Sphinx version, state it here.
28+
#
29+
# needs_sphinx = '1.0'
30+
31+
# Add any Sphinx extension module names here, as strings. They can be
32+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
33+
# ones.
34+
extensions = ['sphinx.ext.todo', 'sphinx.ext.graphviz']
35+
36+
# Add any paths that contain templates here, relative to this directory.
37+
templates_path = ['_templates']
38+
39+
# The suffix(es) of source filenames.
40+
# You can specify multiple suffix as a list of string:
41+
#
42+
# source_suffix = ['.rst', '.md']
43+
source_suffix = '.rst'
44+
45+
# The master toctree document.
46+
master_doc = 'index'
47+
48+
# General information about the project.
49+
project = 'Clean Architecture Python'
50+
copyright = '2018, Nubark'
51+
author = 'Nubark'
52+
53+
# The version info for the project you're documenting, acts as replacement for
54+
# |version| and |release|, also used in various other places throughout the
55+
# built documents.
56+
#
57+
# The short X.Y version.
58+
version = '1.0'
59+
# The full version, including alpha/beta/rc tags.
60+
release = '1.0'
61+
62+
# The language for content autogenerated by Sphinx. Refer to documentation
63+
# for a list of supported languages.
64+
#
65+
# This is also used if you do content translation via gettext catalogs.
66+
# Usually you set "language" from the command line for these cases.
67+
language = 'es'
68+
69+
# List of patterns, relative to source directory, that match files and
70+
# directories to ignore when looking for source files.
71+
# This patterns also effect to html_static_path and html_extra_path
72+
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
73+
74+
# The name of the Pygments (syntax highlighting) style to use.
75+
pygments_style = 'sphinx'
76+
77+
# If true, `todo` and `todoList` produce output, else they produce nothing.
78+
todo_include_todos = True
79+
80+
81+
# -- Options for HTML output ----------------------------------------------
82+
83+
# The theme to use for HTML and HTML Help pages. See the documentation for
84+
# a list of builtin themes.
85+
#
86+
html_theme = 'default'
87+
88+
# Theme options are theme-specific and customize the look and feel of a theme
89+
# further. For a list of options available for each theme, see the
90+
# documentation.
91+
#
92+
# html_theme_options = {}
93+
94+
# Add any paths that contain custom static files (such as style sheets) here,
95+
# relative to this directory. They are copied after the builtin static files,
96+
# so a file named "default.css" will overwrite the builtin "default.css".
97+
html_static_path = ['_static']
98+
99+
# Custom sidebar templates, must be a dictionary that maps document names
100+
# to template names.
101+
#
102+
# This is required for the alabaster theme
103+
# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars
104+
html_sidebars = {
105+
'**': [
106+
'relations.html', # needs 'show_related': True theme option to display
107+
'searchbox.html',
108+
]
109+
}
110+
111+
112+
# -- Options for HTMLHelp output ------------------------------------------
113+
114+
# Output file base name for HTML help builder.
115+
htmlhelp_basename = 'CleanArchitecturePythondoc'
116+
117+
118+
# -- Options for LaTeX output ---------------------------------------------
119+
120+
latex_elements = {
121+
# The paper size ('letterpaper' or 'a4paper').
122+
#
123+
# 'papersize': 'letterpaper',
124+
125+
# The font size ('10pt', '11pt' or '12pt').
126+
#
127+
# 'pointsize': '10pt',
128+
129+
# Additional stuff for the LaTeX preamble.
130+
#
131+
# 'preamble': '',
132+
133+
# Latex figure (float) alignment
134+
#
135+
# 'figure_align': 'htbp',
136+
}
137+
138+
# Grouping the document tree into LaTeX files. List of tuples
139+
# (source start file, target name, title,
140+
# author, documentclass [howto, manual, or own class]).
141+
latex_documents = [
142+
(master_doc, 'CleanArchitecturePython.tex', 'Clean Architecture Python Documentation',
143+
'Nubark', 'manual'),
144+
]
145+
146+
147+
# -- Options for manual page output ---------------------------------------
148+
149+
# One entry per manual page. List of tuples
150+
# (source start file, name, description, authors, manual section).
151+
man_pages = [
152+
(master_doc, 'cleanarchitecturepython', 'Clean Architecture Python Documentation',
153+
[author], 1)
154+
]
155+
156+
157+
# -- Options for Texinfo output -------------------------------------------
158+
159+
# Grouping the document tree into Texinfo files. List of tuples
160+
# (source start file, target name, title, author,
161+
# dir menu entry, description, category)
162+
texinfo_documents = [
163+
(master_doc, 'CleanArchitecturePython', 'Clean Architecture Python Documentation',
164+
author, 'CleanArchitecturePython', 'One line description of project.',
165+
'Miscellaneous'),
166+
]
167+
168+
169+

docs/fundamentos/index.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/fundamentos/index.rst

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
Fundamentos
2+
###########
3+
4+
Podría decirse que *Clean Architecture* no inventa nada nuevo, sino que agrupa
5+
metodologías, principios y patrones de diseño conocidos en la industria del
6+
software desde hace décadas. Sin embargo, lo que *Clean Architecture* sí trae
7+
a la mesa es su objetivo: crear aplicaciones flexibles que sean fáciles de
8+
mantener en el tiempo.
9+
10+
SOLID
11+
*****
12+
13+
- S-ingle Responsability Principle
14+
15+
Cada componente del sistema debería tener una única reponsabilidad.
16+
17+
- O-pen/Closed Principle
18+
19+
Abierto para extensión, cerrado para modificación.
20+
21+
- L-iskov Substitution Principle
22+
23+
- I-nterface Segregation Principle
24+
25+
- D-ependency Inversion Principle
26+
27+
Tipos de Programación
28+
*********************
29+
30+
- Programación Estructurada
31+
32+
Secuencia y selección e iteración. (def, if, while, for)
33+
34+
- Programación Orientada a Objetos
35+
36+
Clases, Objetos, Herencia.
37+
38+
- Programación Funcional
39+
40+
Funciones. No se persiste el estado.
41+
42+
Modelado del Dominio
43+
********************
44+
45+
El núcleo de una aplicación es el dominio que tiene como propósito modelar.
46+
Este dominio se representa a través de lo que llamamos, la lógica de negocio.

docs/implementacion/index.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

docs/implementacion/index.rst

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
Implementación
2+
##############
3+
4+
5+
!Arquitectura que Grita!
6+
************************
7+
8+
El propósito de nuestras aplicaciones debe hacerse notar de primera mano.
9+
10+
La Regla de las Dependencias
11+
****************************
12+
13+
Las dependencias de una aplicación deben dirigirse en la vía de mayor
14+
abstracción.
15+
16+
Capas y Fronteras
17+
*****************
18+
19+
Los componentes de una aplicación se comunican entre sí a través de fronteras
20+
bien definidas.
21+
22+
Los Detalles
23+
************
24+
25+
Las consideraciones de infraestructura son sólo *detalles* del sistema.
26+
La base de datos, el framework web, las librerías de consola, son sólo
27+
herramientas de nuestras aplicaciones y no su esencia.
28+
29+
```
30+
For the framework author, coupling to his or her own framework is not a risk...
31+
32+
The author wants you to couple to the framework, because once coupled in this
33+
way, it is very hard to break away.
34+
```
35+
36+
El Componente Principal
37+
***********************
38+
39+
El más sucio de los componentes. Es el encargado de instanciar el arbol de
40+
dependencias para crear la aplicación final.
41+
42+
Las Pruebas
43+
***********
44+
45+
Las pruebas o *tests* son el componente más externo de nuestra aplicación. A
46+
pesar de que no pueden asegurar que nuestras aplicaciones son correctas, si
47+
pueden informarnos que *no son incorrectas* y prevenir regresiones durante el
48+
desarrollo.
49+
50+
.. todo::
51+
agregar imagen de un escalador con su arnés

docs/index.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

docs/index.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.. Clean Architecture Python documentation master file, created by
2+
sphinx-quickstart on Thu Feb 8 19:00:03 2018.
3+
You can adapt this file completely to your liking, but it should at least
4+
contain the root `toctree` directive.
5+
6+
Clean Architecture con Python
7+
#############################
8+
9+
.. toctree::
10+
:maxdepth: 2
11+
:caption: Contenido:
12+
13+
introduccion/index.rst
14+
fundamentos/index.rst
15+
implementacion/index.rst
16+
proyecto/index.rst
17+
sobre/index.rst
18+
19+
20+

docs/introduccion/index.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

docs/introduccion/index.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
¿Qué es Clean Architecture?
2+
###########################
3+
4+
Clean Architecture o arquitectura limpia, es un compendio de principios y
5+
patrones de desarrollo que tienen como objetivo el facilitar el proceso de
6+
construcción del software, así como su mantenimiento.
7+
8+
.. todo::
9+
Agregar imágen introductoria
10+
11+
Entre sus principales beneficios podemos encontrar:
12+
13+
Beneficios
14+
**********
15+
16+
- Creación de aplicaciones desacopladas que son más fáciles de probar
17+
- Mayor flexibilidad para añadir o remover funcionalidades del software
18+
- Diseño basado en componentes con responsabilidades bien definidas
19+
- Aplazamiento de decisiones críticas hasta el último momento requerido
20+
21+
22+
Usos
23+
****
24+
25+
- Aplicaciones de negocios proyectadas para estar en operación indefinidamente.
26+
- Sistemas distribuidos que se beneficien de un diseño desacoplado (e.g. usando
27+
microservicios).
28+
- Infraestructuras heterogeneas a nivel de bases de datos, servicios web, etc.

0 commit comments

Comments
 (0)