Giter Club home page Giter Club logo

himalaya-admin-backend's Introduction

Welcome to our Himalaya NestJS Crud System ๐Ÿ‘‹

Node NestJS Maintenance License

๐Ÿ  Homepage

Prerequisites

  • NestJS >= 10.2.1

Installation

Choose your preferred package manager to install Himalaya UI:

yarn add @himalaya/admin-backend
npm install @himalaya/admin-backend

Run Tests

You can run tests using the following command:

yarn test

Getting Started

Here's a simple example of how to use within your NesstJS application:

@Controller({
  path: 'tokens',
  version: ['1'],
})
@AuthPermission()
export class TokenController {
  constructor(
    @InjectRepository(TokenEntity)
    protected repository: Repository<TokenEntity>,
  ) {}

  @Post('collection')
  @CrudSearchRequest({
    entity: AuthJwtTokenEntity,
    output: AuthJwtTokenResponse,
    sortable: { accessToken: true },
    filterable: { accessToken: true, identifier: true },
  })
  public async getCollectionPost(
    @Body() options: CrudPaginationRequest,
  ): Promise<CrudPaginationResource<AuthJwtTokenEntity>> {
    return await crudPagination(AuthJwtTokenEntity, this.repository, options);
  }

  @Delete('item/:id')
  @CrudEntityRequest(AuthJwtTokenEntity, 'id')
  public async deleteRequest(@CrudEntity() record: AuthJwtTokenEntity) {
    await record.remove();
  }

  @Get('item/:id')
  @CrudEntityRequest(AuthJwtTokenEntity, 'id')
  @CrudTransformResponse(AuthJwtTokenEntity, AuthJwtTokenResponse)
  public async getRequest(@CrudEntity() record: AuthJwtTokenEntity) {
    return record;
  }
}

Author

๐Ÿ‘ค RedNinjas LTD

๐Ÿ‘ค Stefan Kalysta

๐Ÿค Contributing

We welcome contributions, issues, and feature requests from the community! Please visit our issues page to report problems or make suggestions. You can also find our contributing guide for more information.

Show Your Support

If Himalaya UI has helped you in your projects, show your support by giving us a โญ๏ธ!

๐Ÿ“ License

Himalaya UI is licensed under the MIT License. The MIT License is a permissive open source license that allows you to use, modify, and distribute the software for both commercial and non-commercial purposes. You are granted extensive freedom to customize and integrate Himalaya UI into your projects while maintaining the freedom to use it as you see fit.

Copyright ยฉ 2023 RedNinjas LTD.

For more details, please review the full MIT License provided by the project.

himalaya-admin-backend's People

Contributors

dev-absid avatar kalysti avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.