@kenote/koa-session
TypeScript icon, indicating that this package has built-in type declarations

1.0.32 • Public • Published

@kenote/koa-session

Session plug-in based on Koa for Kenote.js.

NPM Version NPM Downloads Gratipay

Usage

index.ts

import { Module, ServerFactory } from '@kenote/core'
import { ServiceEngine } from '@kenote/koa'
import session from '@kenote/koa-session'
import redisStore from 'koa-redis'

@Module({
  imports: [],
  plugins: [
    session({
      store: redisStore(),
    })
  ],
})
class AppModule {}

async bootstarp () {
  let factory = await ServerFactory(new ServiceEngine()).create(AppModule)
  factory.server.listen(4000)
}

MIT License.

Readme

Keywords

Package Sidebar

Install

npm i @kenote/koa-session

Weekly Downloads

9

Version

1.0.32

License

MIT

Unpacked Size

48.2 kB

Total Files

28

Last publish

Collaborators

  • thondery