flow like the river

This commit is contained in:
root 2025-11-07 00:06:12 +01:00
commit 013fe673f3
42435 changed files with 5764238 additions and 0 deletions

31
VISUALIZACION/node_modules/mongoose/tools/auth.js generated vendored Executable file
View file

@ -0,0 +1,31 @@
'use strict';
const Server = require('mongodb-topology-manager').Server;
const mongodb = require('mongodb');
run().catch(error => {
console.error(error);
process.exit(-1);
});
async function run() {
// Create new instance
const server = new Server('mongod', {
auth: null,
dbpath: '/data/db/27017'
});
// Purge the directory
await server.purge();
// Start process
await server.start();
const db = await mongodb.MongoClient.connect('mongodb://127.0.0.1:27017/admin');
await db.addUser('passwordIsTaco', 'taco', {
roles: ['dbOwner']
});
console.log('done');
}