User Tools

Site Tools


rdm-dev:start

This is an old revision of the document!


Wissensmanagement der Entwickler in der AG Daten.

Inhalt
Nützliches

Platz, um als Team Vorgehen, gute Lösungen usw. über Projekte hinweg auszutauschen.

Tip #1: Wenn du OOP im Python magst, dann würdest du von pylint profitieren. LOL Beim Dokumentieren großerer Projecte ist visueller Überblick hilfreich und

pyreverse -o png -p name_for_the_files my_script.py

response: classes_name_for_the_files.png packages_name_for_the_files.png

doku https://pylint.readthedocs.io/en/latest/pyreverse.html

Tip #2: How to replicate any mongoDB database in a Docker container?

1. Ensure you have mongo cli tools installed (Homebrew is your friend)

2. call mongodump in any convenient way for you https://www.mongodb.com/docs/database-tools/mongodump/

3. copy the folder with .bson and metadata into containers' environment. In my case container is called mongodb and the command goes: docker cp /Users/torkhov/Documents/coDING/wsgi_chery_frontend/icgem-LOCAL/mongodump/dump/icgem-test mongodb:/backup/icgem-test

4. Mongorestore the copied volume inside container

5. to automate the process each time a container is reloaded, you will need a .sh script. You mount the .sh script and the mongodump onto the container (this eliminates the necessity of step 3), then the script does step 4.


rdm-dev/start.1732091604.txt.gz · Last modified: 2024/11/20 08:33 by torkhov