Skip to content

Commit 149024a

Browse files
authored
Merge pull request btwld#7 from tnramalho/main
Improve documentation and dependencies
2 parents d5d7075 + d56a275 commit 149024a

8 files changed

Lines changed: 821 additions & 800 deletions

File tree

README.md

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ npm install @concepta/rockets-server @concepta/nestjs-typeorm-ext typeorm
3434

3535
### Basic Setup
3636

37+
This is the minimum required setup to get started with Rockets Server.
38+
You'll need to create your entities and configure the module as follows:
39+
3740
```typescript
3841
// app.module.ts
3942
import { Module } from '@nestjs/common';
@@ -51,29 +54,27 @@ import { FederatedEntity } from './entities/federated.entity';
5154
synchronize: true,
5255
autoLoadEntities: true,
5356
}),
54-
TypeOrmExtModule.forFeature({
55-
user: { entity: UserEntity },
56-
}),
57-
TypeOrmExtModule.forFeature({
58-
userOtp: { entity: UserOtpEntity },
59-
}),
60-
TypeOrmExtModule.forFeature({
61-
federated: { entity: FederatedEntity },
62-
}),
6357
RocketsServerModule.forRoot({
64-
jwt: {
65-
settings: {
66-
access: { secret: 'your-secret-key' },
67-
refresh: { secret: 'your-refresh-secret' },
68-
},
58+
user: {
59+
imports: [
60+
TypeOrmExtModule.forFeature({
61+
user: {
62+
entity: UserFixture,
63+
},
64+
}),
65+
],
66+
},
67+
otp: {
68+
imports: [
69+
TypeOrmExtModule.forFeature({
70+
userOtp: {
71+
entity: UserOtpEntityFixture,
72+
},
73+
}),
74+
],
6975
},
7076
services: {
71-
mailerService: {
72-
sendMail: (options) => {
73-
console.log('Email sent:', options.to);
74-
return Promise.resolve();
75-
},
76-
},
77+
mailerService: mockEmailService,
7778
},
7879
}),
7980
],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "root",
3-
"version": "0.1.0-dev.1",
3+
"version": "0.1.0-dev.3",
44
"license": "BSD-3-Clause",
55
"private": true,
66
"workspaces": {

0 commit comments

Comments
 (0)