Skip to content

eyemt/fastify-mongo-tickets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fastify-mongo-tickets

Demo ticket service with Fastify and MongoDB

Install

npm i @matteo.collina/fastify-mongo-tickets

Usage

'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.

API

Docs TBD, see tests. It uses fastify-mongodb and fastify-jwt

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published