this is a scaffold for a python flask backend
- Clone the repository
- Confirmed that you have python 3.9 or later installed
- Install the dependencies with
pip install -r requirements.txt
- Run the server with
python main.py
A basic user login and register system is implemented in this scaffold, that will help you to understand the structure of the project.
-
main.py
is the entry point of the application -
config
the configuration of the applicationbasic.py
the base configurationdebug.py
the configuration for the development environmentprod.py
the configuration for the production environmentcontroller_test.py
the configuration for the controller test environment, don't use it in production
-
controller
the controllers of the application, creat controllers here -
model
the ORM models of the application, create models here -
service
the services of the application, create services here -
util
the utilities of the application, create utilities hereexception.py
the exceptions of the applicationlogger.py
a logger implement for the applicationsecurity.py
security utilities for the applicationtime.py
a datetime utilities for the application
-
test
the tests of the application, create tests here