MVC-with-Bottle is a web microframework based on the Model-View-Controller design pattern and built on top of the Bottle library.
- Edgard Decena, edecena@gmail.com
MVC-with-Bottle does not require the installation of any external library. The Bottle library is already included in the framework itself, in the core/libs
folder.
-
The
core
folder contains the implementation of the framework's abstract classes:controller.py
andmodel.py
, from which the controllers and models respectively of any project will inherit. -
The
views
,controllers
andmodels
folders will contain the particular views, controllers and models for any given project. -
The url pattern is
http://localhost:8080/ctler/p1/p2/p3/...
wherectler
is the controller to be requested, andp1
,p2
,p3
... are the parameters to be received by that controller. -
The
config.json
file contains the configuration parameters of theBottle
object, as well as the name of a Sqlite database to be stored in thedata
folder.
Feel free to contribute to this project if you wish, by reporting issues or proposing improvements through pull-requests. Thank you.