-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
abe984a
commit c36c219
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Project Structure | ||
|
||
In a Selva project, you need to define at least the `application`. | ||
|
||
It can be a Python module or package and represents the main code of the project. | ||
Any controllers or services defined under it will be discovered and registered | ||
in the dependency injection context. | ||
|
||
If your project is small, you can just define the `aplication.py` module, but you | ||
can have any structure you need inside the `application` package. | ||
|
||
For example: | ||
|
||
``` | ||
project/ | ||
└── application/ | ||
├── __init__.py | ||
├── controller/ | ||
│ ├── __init__.py | ||
│ ├── public/ | ||
│ │ ├── __init__.py | ||
│ │ ├── about.py | ||
│ │ ├── home.py | ||
│ │ └── product.py | ||
│ └── private/ | ||
│ ├── __init__.py | ||
│ ├── category.py | ||
│ ├── customer.py | ||
│ └── product.py | ||
├── model/ | ||
│ ├── __init__.py | ||
│ ├── category.py | ||
│ ├── customer.py | ||
│ └── product.py | ||
├── repository/ | ||
│ ├── __init__.py | ||
│ ├── category.py | ||
│ ├── customer.py | ||
│ └── product.py | ||
└── service/ | ||
├── __init__.py | ||
├── category.py | ||
├── customer.py | ||
├── email.py | ||
└── product.py | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters