Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Techie-Qabila/fastify-orientdb
Graph NoSql database plugin for fastify
https://github.com/Techie-Qabila/fastify-orientdb
fastify nodejs orientdb orientdb-connection
Last synced: 2 months ago
JSON representation
Graph NoSql database plugin for fastify
- Host: GitHub
- URL: https://github.com/Techie-Qabila/fastify-orientdb
- Owner: Techie-Qabila
- License: mit
- Created: 2017-09-03T07:22:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-10T06:11:21.000Z (over 7 years ago)
- Last Synced: 2024-04-12T16:33:57.666Z (10 months ago)
- Topics: fastify, nodejs, orientdb, orientdb-connection
- Language: JavaScript
- Homepage:
- Size: 72.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-fastify - `fastify-orientdb`
README
# fastify-orientdb
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/)
[![npm version](https://img.shields.io/npm/v/fastify-orientdb.svg?style=flat-square)](https://www.npmjs.com/package/fastify-orientdb)
[![npm downloads](https://img.shields.io/npm/dm/fastify-orientdb.svg?style=flat-square)](https://www.npmjs.com/package/fastify-orientdb)Under the hood [orientdb](https://github.com/orientechnologies/orientjs) client is used, the options that you pass to `register` will be passed to the orientdb connection.
## Install
```
npm i fastify-orientdb --save
```
## Usage
Add it to you project with `register` and you are done!
You can access the *Orientdb Connection* via `fastify.db`.
```js
const fastify = require('fastify')fastify.register(require('fastify-orientdb'), {
host: 'localhost',
port: 2424,
username: 'admin',
password: 'admin',
name: 'GratefulDeadCocnerts'
}, err => {
if (err) throw err
})fastify.listen(3000, err => {
if (err) throw err
console.log(`server listening on ${fastify.server.address().port}`)
})
```## License
Licensed under [MIT](./LICENSE).