X Tutup
Skip to content

🤩MongoDB support 🤩#272

Merged
nikmel2803 merged 37 commits intov2from
mongodb-driver
Oct 3, 2022
Merged

🤩MongoDB support 🤩#272
nikmel2803 merged 37 commits intov2from
mongodb-driver

Conversation

@nikmel2803
Copy link
Member

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

Co-authored-by: Ilya Maroz <37909603+ilyamore88@users.noreply.github.com>
@nikmel2803 nikmel2803 merged commit 55b4b3e into v2 Oct 3, 2022
@nikmel2803 nikmel2803 deleted the mongodb-driver branch October 3, 2022 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

X Tutup