Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mcollina/fastify-mongo-tickets
Demo ticket service with Fastify and MongoDB
https://github.com/mcollina/fastify-mongo-tickets
Last synced: 13 days ago
JSON representation
Demo ticket service with Fastify and MongoDB
- Host: GitHub
- URL: https://github.com/mcollina/fastify-mongo-tickets
- Owner: mcollina
- License: mit
- Created: 2018-10-16T14:01:55.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-01T11:19:39.000Z (over 5 years ago)
- Last Synced: 2024-12-17T15:42:32.718Z (23 days ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fastify-mongo-tickets
Demo ticket service with Fastify and MongoDB
## Install
```
npm i @matteo.collina/fastify-mongo-tickets
```## Usage
```js
'use strict'const Fastify = require('fastify')
const app = Fastify()
app.register(require('fastify-jwt'), {
secret: 'averyverylongsecret'
})app.register(require('fastify-mongodb'), {
url: 'mongodb://localhost:27017',
useNewUrlParser: true
})app.register(require('@matteo.collina/fastify-mongo-tickets'))
app.listen(3000)
```Works best in combo with
[https://github.com/mcollina/fastify-auth-mongo-jwt](https://github.com/mcollina/fastify-auth-mongo-jwt).## API
Docs TBD, see tests.
It uses [fastify-mongodb](https://github.com/fastify-mongodb) and [fastify-jwt](https://github.com/fastify-jwt)## License
MIT