Skip to content
astonished12 edited this page Dec 4, 2018 · 6 revisions

CryptoTax

Useful Links

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/

TODO

  1. Create a better Flask server project structure
  2. Create database models
  3. Create routes (mocked)
  4. Create services (mocked)
  5. Create initial Vue.JS structure
  6. ...

Database

  • Users

    • id
    • gov_id
    • first_name
    • last_name
    • password
    • ethereum_id
    • email
    • password_hash
    • role_id
    • contracts ( <—> Contracts table)
  • Role

    • id
    • name
    • index
    • default
    • permissions
    • users
  • Contracts

    • id
    • type
    • description
    • ethereum_addr

Routes

  • 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)
Clone this wiki locally