AletheiaFact / aletheia

https://aletheiafact.org a Crowd-sourced fact checking platform.
GNU General Public License v3.0
51 stars 16 forks source link

RFC: Replace mongoose with TypeORM to allow multiple DB drivers #1060

Open thesocialdev opened 1 year ago

thesocialdev commented 1 year ago

Background Information

Although MongoDB is source available, it's not an OSI complaint software. We need to make sure that we can support other options like FerretDB, PostgreSQL, MySQL, etc.

How

Moving to TypeORM can help us to re-architecture the code in order to allow other forms of storage and make sure that 3rd parties users of Aletheia can maintain the platform with their own choices of infrastructure

thesocialdev commented 7 months ago

We considered other ORMs, but since we use MongoDB TypeORM seems to be the best solution for now.