0.4.2 • Published 9 months ago

@gabortorma/feathers-nitro-adapter v0.4.2

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

feathers-nitro-adapter

npm version npm downloads License code style

Nitro adapter plugin for FeathersJS API

🏀 Online playground

Install

pnpm install -D @gabortorma/feathers-nitro-adapter

Usage in Nuxt v3

Create a new nitro plugin file in server/plugins folder:

Express adapter example:

// server/plugins/feathers-express.ts
import { createFeathersExpressAdapterNitroPlugin } from '@gabortorma/feathers-nitro-adapter'
import { app } from 'feathers-api/src/app' // import your feathers app from workspace

export default createFeathersExpressAdapterNitroPlugin(app)

See Express fixture in test cases.

Koa adapter example:

// server/plugins/feathers-koa.ts
import { createFeathersKoaAdapterNitroPlugin } from '@gabortorma/feathers-nitro-adapter'
import { app } from 'feathers-api/src/app' // import your feathers app from workspace

export default createFeathersKoaAdapterNitroPlugin(app)

See Koa fixture in test cases.

Socket.io adapter example:

// server/plugins/feathers-socket.io.ts
import { createFeathersSocketIoAdapterNitroPlugin } from '@gabortorma/feathers-nitro-adapter'
import { app } from 'feathers-api/src/app'

export default createFeathersSocketIoAdapterNitroPlugin(app)

See Socket.io fixture in test cases.

More example

You can check the playground folder for complex example with rest and socket.io transport and authentication.

0.4.1

9 months ago

0.4.0

9 months ago

0.4.2

9 months ago

0.3.2

9 months ago

0.3.1

9 months ago

0.3.0

9 months ago

0.2.12

9 months ago

0.2.11

9 months ago

0.2.10

9 months ago

0.2.9

9 months ago

0.2.8

9 months ago

0.2.7

9 months ago

0.2.6

9 months ago

0.2.5

9 months ago

0.2.4

9 months ago

0.2.3

10 months ago

0.2.2

10 months ago

0.2.1

10 months ago

0.2.0

10 months ago

0.1.2

10 months ago

0.1.1

10 months ago

0.1.0

10 months ago

0.0.1

10 months ago