{"id":20525921,"url":"https://github.com/wendreof/nodemultipledbs","last_synced_at":"2026-04-06T21:31:15.244Z","repository":{"id":47989524,"uuid":"197975657","full_name":"wendreof/nodeMultipleDBs","owner":"wendreof","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-30T18:18:51.000Z","size":713,"stargazers_count":2,"open_issues_count":12,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-06T01:32:33.342Z","etag":null,"topics":["adminer","mongoclient","mongodb","nodejs","nosql","postgresql","sql"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wendreof.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-20T19:58:04.000Z","updated_at":"2021-09-01T01:56:07.000Z","dependencies_parsed_at":"2023-01-31T13:01:00.045Z","dependency_job_id":null,"html_url":"https://github.com/wendreof/nodeMultipleDBs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wendreof/nodeMultipleDBs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wendreof%2FnodeMultipleDBs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wendreof%2FnodeMultipleDBs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wendreof%2FnodeMultipleDBs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wendreof%2FnodeMultipleDBs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wendreof","download_url":"https://codeload.github.com/wendreof/nodeMultipleDBs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wendreof%2FnodeMultipleDBs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31491096,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-06T17:22:55.647Z","status":"ssl_error","status_checked_at":"2026-04-06T17:22:54.741Z","response_time":112,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adminer","mongoclient","mongodb","nodejs","nosql","postgresql","sql"],"created_at":"2024-11-15T23:11:16.694Z","updated_at":"2026-04-06T21:31:15.016Z","avatar_url":"https://github.com/wendreof.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# after starting all containers below\n\n#run test and UP SERVER on port 5000\nsudo yarn test\n\n#postgres\nsudo docker run \\\n    --name postgres5 \\\n    -e POSTGRES_USER=wlf \\\n    -e POSTGRES_PASSWORD=password \\\n    -e POSTGRES_DB=heroes \\\n    -p 5432:5432 \\\n    -d \\\n    postgres\n\n#adminer\ndocker run \\\n    --name adminer1 \\\n    -p 8080:8080 \\\n    --link postgres5:postgres5 \\\n    -d \\\n    adminer\n    \n#mongodb    \ndocker run \\\n    --name mongodb \\\n    -p 27017:27017 \\\n    -e MONGO_INITDB_ROOT_USERNAME=admin \\\n    -e MONGO_INITDB_ROOT_PASSWORD=admin \\\n    -d \\\n    mongo:4\n\n#mongoclient    \ndocker run \\\n    --name mongoclient \\\n    -p 3000:3000 \\\n    --link mongodb:mongodb \\\n    -d \\\n    mongoclient/mongoclient  \n    \n#result  \ndocker ps \ndocker exec -it postgres /bin/bash\n\n#others\ndocker exec -it mongodb \\\n    mongo --host localhost -u admin -p admin --authenticationDatabase admin \\\n    --eval \"db.getSiblingDB('herois').createUser({user: 'wlf',  pwd: 'wlf', roles: [{role: 'readWrite', db: 'herois'}]})\"\n\ndocker exec -it 2199279585d1 \\\n    mongo -u wlf -p wlf --authenticationDatabase herois\n    \n    show dbs\n    use herois\n    show collections\n    \n    db.herois.insert({\n    nome: 'Flash',\n    poder: 'Velocidade',\n    dataNascimento: '1998-01-01'\n    })\n    \n    for(let i=0; i\u003c=10000; i++){\n      db.herois.insert({\n        nome: `Clone-${i}`,\n        poder: 'Velocidade',\n        dataNascimento: '1998-01-01'\n        })\n    }\n    \n    db.herois.count()\n    db.herois.findOne()\n    db.herois.find().limit(1000).sort({nome: -1})\n    db.herois.find({}, {poder:1, _id: 0})\n    \n    //create\n         db.herois.insert({\n            nome: `Clone-${i}`,\n            poder: 'Velocidade',\n            dataNascimento: '1998-01-01'\n            })\n            \n    //read\n    db.herois.find()\n    \n    //update\n    db.herois.update({ _id: ObjectId('5d3bc0a5aeecfcf8f486dc22') },\n            {nome: 'Mulher Maravilha'})\n    db.herois.update({ _id: ObjectId('5d3bc168aeecfcf8f4870323') },\n                                {$set: {nome: 'Lanterna Verde'} })\n                                \n    //delete\n    db.herois.remove({nome: 'Lanterna Verde'})\n    \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwendreof%2Fnodemultipledbs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwendreof%2Fnodemultipledbs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwendreof%2Fnodemultipledbs/lists"}