- clone projcet
- use node 20 version like 20.13.1(LTS) its not working node 20+ versions
- npm i
- create .env and add here DB_URL=
- npm run start:dev // for starting project
- nest g res posts
- inside a mongoose folder add post-model.ts file
- copy user-model.ts file and configure it as you want, add new props.
- dont forget to change also interface and schema name, like inteface Post and PostSchema
- import it inside of mongoose.module.ts file, especially
MongooseModule.forFeature( [ 
  { name:  'Admin', schema:  AdminSchema },
  { name:  'User', schema:  UserSchema },
  //here add new resource
  { name: 'Post', schema: PostSchema }
]),- go to post.module.ts and import new mongooseModule.forfeature
imports: [
   MongooseModule.forFeature([{name:  'Post', schema:  PostSchem}])
],- inject postModel inside a post.service.ts and write logics that you want.
- most important part inside an app.module.ts you should add your resource.
inject: [
  getModelToken('Admin'),
  getModelToken('User'),
  getModelToken('Post'), // add new resourse
],  useFactory: (
	adminModel: Model<Admin>,
	userModel: Model<User>,
	postModel: Mode<Post> // dont forget that
	) => ({
        adminJsOptions: {
          rootPath: '/admin',
          resources: [
            { resource: adminModel },
            { resource: userModel },
          ],
        },
...- thats all npm run start:dev /admin use username: admin@example.com and pass: password