0.6.0 • Published 9 months ago
@gabortorma/feathers-nitro-adapter v0.6.0
feathers-nitro-adapter
Nitro adapter plugin for FeathersJS API
Install
pnpm install -D @gabortorma/feathers-nitro-adapterUsage 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.4
1 year ago
0.5.0
10 months ago
0.4.3
1 year ago
0.6.0
9 months ago
0.4.1
1 year ago
0.4.0
1 year ago
0.4.2
1 year ago
0.3.2
1 year ago
0.3.1
1 year ago
0.3.0
1 year ago
0.2.12
1 year ago
0.2.11
1 year ago
0.2.10
1 year ago
0.2.9
1 year ago
0.2.8
1 year ago
0.2.7
1 year ago
0.2.6
1 year ago
0.2.5
1 year ago
0.2.4
1 year ago
0.2.3
1 year ago
0.2.2
1 year ago
0.2.1
1 year ago
0.2.0
1 year ago
0.1.2
1 year ago
0.1.1
1 year ago
0.1.0
1 year ago
0.0.1
1 year ago