nest-autocrud/README.md

2.2 KiB

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

Status

This project is still in development and not ready for production, it's not even ready to install yet. Calling for contributors to help this project.

Description

Nest Auto CRUD is a library that provides a set of modules, decorator, service, and many more to reduce the boilerplate code.

Roadmap

Basic Thing

  • Basic CRUD Controller with unique selection is ID and general request body
  • Custom Read Query Unique Selection
  • Custom body mapping
  • Custom validation

Tailored Controller Abstraction

  • Controller options for only read and update
  • Controller options for only create and delete
  • Controller options for only read
  • Controller options for only update
  • Controller options for only create
  • Controller options for only delete
  • Controller options for only read and create

Advanced Support

  • Generic support for Prisma ORM #5273

Installation

$ npm install @aditama-labs/nest-autocrud

Example

Prisma ORM

// Your Module
@Module({
  imports: [
    // This module will automatically map your model to the controller
    PrismaModule.forRoot({
      delegate: (prisma: PrismaClient) => prisma.user,
    }),
  ],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule {}

// Your Controller
@Controller('examples')
export class AppController extends SkeletonCRUDController {}

TypeORM

COMING SOON

Support

Nest AutoCRUD is an MIT-licensed open source project.

Stay in touch

License

Nest AutoCRUD is MIT licensed