@os.io/nest-kit 0.0.1-alpha.5 → 0.0.2-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -71,19 +71,23 @@ import { setupSwagger } from '@os.io/nest-kit/bootstrap';
|
|
|
71
71
|
import { RBACGuard } from '@os.io/nest-kit/auth';
|
|
72
72
|
```
|
|
73
73
|
|
|
74
|
-
> **
|
|
74
|
+
> **Ready for production use.** Requires NestJS 11+.
|
|
75
75
|
|
|
76
76
|
## 🚀 Quick Start
|
|
77
77
|
|
|
78
78
|
```ts
|
|
79
|
-
// main.ts
|
|
80
79
|
import { NestFactory } from '@nestjs/core';
|
|
81
80
|
import { AppModule } from './app.module';
|
|
82
|
-
|
|
81
|
+
import { configCache } from '@os.io/nest-kit/bootstrap/cache';
|
|
82
|
+
import { CacheModule } from '@nestjs/cache-manager';
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
@Module({
|
|
85
|
+
imports: [CacheModule.register(configCache())],
|
|
86
|
+
})
|
|
87
|
+
export class AppModule {}
|
|
88
|
+
|
|
89
|
+
async function bootstrap(): Promise<void> {
|
|
85
90
|
const app = await NestFactory.create(AppModule);
|
|
86
|
-
// setupSwagger(app, { title: 'My API', version: '1.0.0' });
|
|
87
91
|
await app.listen(3000);
|
|
88
92
|
}
|
|
89
93
|
bootstrap();
|
|
@@ -92,6 +96,7 @@ bootstrap();
|
|
|
92
96
|
## 📖 Documentation
|
|
93
97
|
|
|
94
98
|
Full documentation is available at:
|
|
99
|
+
➡️ **https://osio-labs.github.io/nest-kit**
|
|
95
100
|
➡️ **https://osio-labs.github.io/nest-kit** (coming soon)
|
|
96
101
|
|
|
97
102
|
Or browse the [docs](./docs) folder locally.
|
package/package.json
CHANGED