https://github.com/kuduxaaa/flask-structure
This is an already built-in MVC structure for Flask application, you can add models views and controllers, you can also easily start working on the API with a structure already made
https://github.com/kuduxaaa/flask-structure
flask flask-mvc-structure flask-structure structure
Last synced: 21 days ago
JSON representation
This is an already built-in MVC structure for Flask application, you can add models views and controllers, you can also easily start working on the API with a structure already made
- Host: GitHub
- URL: https://github.com/kuduxaaa/flask-structure
- Owner: Kuduxaaa
- License: mit
- Created: 2021-12-05T16:00:41.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-12T13:08:50.000Z (over 2 years ago)
- Last Synced: 2025-04-19T00:41:09.954Z (about 1 month ago)
- Topics: flask, flask-mvc-structure, flask-structure, structure
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 13
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FlaskInit
This is an already built-in MVC structure for Flask application, you can add models views and controllers, you can also easily start working on the API with a structure already made
```
- app
- api
- __init__.py
- resources.py- controllers
- main.py- models
- users.py- public
- css
- img
- js
- robots.txt- service
- __init__.py- views
- error
- inc
- layouts
- main- __init__.py
- config.py
- requirements.txt
- manager
```## API Folder
From here you can add as many resources as you want for API. Do not forget to register these resources in the `__init __.py` file.
```python3
from app.api import resources, RESOURCE_FILE # API Resourcesapi_router.add_resource(resources.Example, '/')
api_router.add_resource(RESOURCE_FILE.RESOURCE_CLASS_NAME, 'RESOURCE_ROUTE')
```