This PR enables MongoDB driver support for CodeX Docs. By default local driver is enabled (powered with nedb).
Changes summary:
created MongoDB driver (see src/backend/database/mongodb.ts)
created converter from local database to mongodb (see bin/db-converter/README.md)
use new type EntityId for all identifiers to improve support for both ObjectId and string ids.
How to run and test
1) Read DEVELOPMENT.md
2) Run MongoDB via docker compose
3) Run db-converter to convert your local database
4) enable mongodb driver and run application
NOTE: there are still can exists some bugs due to nedb and MongoDB compatibility issues. If you find any bugs, provide description and steps to reproduce here please
This PR enables MongoDB driver support for CodeX Docs. By default
local
driver is enabled (powered with nedb).Changes summary:
src/backend/database/mongodb.ts
)bin/db-converter/README.md
)EntityId
for all identifiers to improve support for bothObjectId
andstring
ids.How to run and test 1) Read
DEVELOPMENT.md
2) Run MongoDB via docker compose 3) Run db-converter to convert your local database 4) enable mongodb driver and run applicationNOTE: there are still can exists some bugs due to nedb and MongoDB compatibility issues. If you find any bugs, provide description and steps to reproduce here please