poetapp / frost-api

Po.et's API Layer
https://api.poetnetwork.net
MIT License
24 stars 5 forks source link

refactor: account related code #934

Closed lautarodragan closed 5 years ago

lautarodragan commented 5 years ago

This PR introduces several refactors and changes:

New Architecture

New architecture drops use of Mongoose in favour of plain old MongoDB driver.

This allows us to avoid inheritance in our objects, have control of the interactions with the database without any behind-the-curtains magic, avoid global mutable objects and have models that are immutable objects of primitives with no functions in them.

It achieves this by introducing new files and keeping changes to old files to the bare minimum.

New controllers go in /controllers, new models in /models, new daos in /daos.

poet-ci commented 5 years ago

:tada: This PR is included in version 1.28.8 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: