-
Notifications
You must be signed in to change notification settings - Fork 0
Home
astonished12 edited this page Dec 4, 2018
·
6 revisions
https://github.com/hack4impact/flask-base
https://github.com/gtalarico/flask-vuejs-template
https://lepture.com/en/2018/structure-of-a-flask-project
https://stackoverflow.com/questions/14415500/common-folder-file-structure-in-flask-app
https://www.patricksoftwareblog.com/structuring-a-flask-project/
- Create a better Flask server project structure
- Create database models
- Create routes (mocked)
- Create services (mocked)
- Create initial Vue.JS structure
- ...
-
Users
- id
- gov_id
- first_name
- last_name
- password
- ethereum_id
- password_hash
- role_id
- contracts ( <—> Contracts table)
-
Role
- id
- name
- index
- default
- permissions
- users
-
Contracts
- id
- type
- description
- ethereum_addr
- register (User, Admin)
- login (User, Admin)
-
API
-
/users
- GET (Admin)
- POST (Admin)
-
/users/#id
- GET (User, Admin)
- DELETE (Admin)
- UPDATE (User, Admin)
-
/users/#id/contracts
- GET (User, Admin)
- POST (Admin)
- DELETE (Admin)
- UPDATE (Admin)
-
/contracts
- GET (User, Admin)
- POST (Admin)
-
/contracts/#id
- GET (User, Admin)
- DELETE (Admin)
- UPDATE (Admin)
-