1.0.1 • Published 1 year ago
mongodb-raspberry4-bin v1.0.1
mongodb-arm-bin
MongoDB binaries for ARM architecture.
Installation
Install the package using npm:
npm install mongodb-arm-bin
Usage
This package provides MongoDB binaries compiled for ARM architecture. These binaries can be used with various tools that allow custom binary paths, such as mongodb-memory-server.
Example with mongodb-memory-server To use the MongoDB binaries with mongodb-memory-server, you can specify the binary path in the configuration.
const { MongoMemoryServer } = require('mongodb-memory-server');
const mongod = new MongoMemoryServer({
binary: {
systemBinary: './node_modules/mongodb-arm-bin/mongod',
},
});
async function startServer() {
await mongod.start();
const uri = mongod.getUri();
console.log(`MongoDB server is running at ${uri}`);
}
startServer();