marcos-nunes-dev / Grow-Roadmaps

MOVED TO ORGANIZATION. LINK BELLOW:
https://github.com/GrowRoadmap
Open Software License 3.0
58 stars 7 forks source link

API server redesign #23

Closed rafaelalmeidatk closed 5 years ago

rafaelalmeidatk commented 5 years ago

The current API server has some bad practices that need to be solved to make the codebase cleaner and help people to understand it better.

¹: JWT should not be utilized for sessions, they are not designed for this and has security flaws. ²: All database related code should be in one single place and expose functions to operate with the database. The rest of the code doesn't need to know anything about the db. ³: ORMs should be avoided, they hide the SQL logic and prevent optimizations. Too much magic also makes harder to newcomers understand what is going on. And Sequelize is just bad overall.

rafaelalmeidatk commented 5 years ago

All done!