Skip to content
/ ferretdb Public

FerretDB etc Database connect tests with Meteor, Node.js, Bun and Deno. Creating single executeables with Bun and Deno.

License

Notifications You must be signed in to change notification settings

wekan/ferretdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FerretDB

Optional: Deleting all Docker volumes etc data to cleanup

git clone https://github.com/wekan/docker-cleanup-volumes

cd docker-cleanup-volumes

./start.sh

1) Starting this FerretDB/SQLite

git clone https://github.com/wekan/ferretdb

cd ferretdb/sqlite

docker compose up -d

2) Manually create OpLog collection

mongosh

use local

db.createCollection('oplog.rs', { capped: true, size: 536870912 })

3) Build WeKan

git clone https://github.com/wekan/wekan

cd wekan

./rebuild-wekan.sh

1

./rebuild-wekan.sh

2

./rebuild-wekan.sh

3

4) OpLog Settings

These are at ~/repos/ferretdb/wekan/start-wekan.sh

cd ~/repos/wekan/.build/bundle

export MONGO_OPLOG_URL=mongodb://127.0.0.1:27017/local?replicaSet=rs0

export MONGO_URL=mongodb://127.0.0.1:27017/wekan

export ROOT_URL=http://localhost:4000

export PORT=4000

node main.js

cd ~/repos/ferretdb/wekan

5) Start WeKan bundle

cd ~/repos/ferretdb/wekan

./start-wekan.sh

Web browser URL: http://localhost:4000

6) Look that there is something at OpLog

mongosh

use local

db.oplog.rs.countDocuments()

db.oplog.rs.find()

7) Look what has been able to write to database

mongosh

use wekan

show collections

db.boards.countDocuments()

db.boards.find()

db.cards.find()

8) Currently working with FerretDB

9) Currently not working with FerretDB

  • Adding attachments related collections to GridFS
  • Adding new board, errors about matchElement and userId

TODO: Later, try to fix this to create OpLog collection at start for PostgreSQL

docker-compose.yml

ferretdb-sqlite-setup:
 image: ghcr.io/ferretdb/all-in-one
 restart: no
 depends_on:
   - ferretdb-sqlite
 entrypoint: [ "bash", "-c", "sleep 10 && /usr/bin/mongosh --host ferretdb-postgresql:27017 --eval 'use local;db.createCollection('oplog.rs', { capped: true, size: 536870912 });'"]

About

FerretDB etc Database connect tests with Meteor, Node.js, Bun and Deno. Creating single executeables with Bun and Deno.

Resources

License

Stars

Watchers

Forks

Packages

No packages published