@neuledge/mongodb-store
Version:
A store for [Neuledge Engine](https://github.com/neuledge/engine-js) that uses [MongoDB](https://www.mongodb.com/) as the database backend.
32 lines (21 loc) • 788 B
Markdown
A store for [Neuledge Engine](https://github.com/neuledge/engine-js) that uses [MongoDB](https://www.mongodb.com/) as the database backend.
```bash
npm install @neuledge/mongodb-store
```
```ts
import { Engine } from '@neuledge/engine';
import { MongoDBStore } from '@neuledge/mongodb-store';
const store = store: new MongoDBStore({
url: process.env.MONGODB_URL ?? 'mongodb://localhost:27017',
name: process.env.MONGODB_DATABASE ?? 'my-database',
});
const engine = new Engine({
store,
});
```
For more information, please refer to the [main repository](https://github.com/neuledge/engine-js).
Neuledge is [Apache 2.0 licensed](https://github.com/neuledge/engine-js/blob/main/LICENSE).