nestjs 设置跨域_为NestJS应用程序设置AdminBro

nestjs 设置跨域

In this brief tutorial, I will present how you can add a multifunctional Django inspired admin panel to your NestJS application. You can use this knowledge to build an effective tool for managing different sorts of data in 10 minutes.

在这个简短的教程中,我将向您介绍如何向您的NestJS应用程序添加一个受Django启发的多功能管理面板。 您可以使用此知识来构建有效的工具,以在10分钟内管理各种数据。

介绍 (Introduction)

NestJS is a progressive Node.js framework that allows us to build efficient, reliable, and scalable server-side applications. When we create such an application usually we need a ready-to-use user interface for administrative activities that allows us to manage entities.

NestJS是一个渐进式的Node.js框架,可让我们构建高效,可靠且可扩展的服务器端应用程序。 创建此类应用程序时,通常需要用于管理活动的现成用户界面,以允许我们管理实体。

Being working as a ruby-on-rails developer for a long time I used Active Admin plugin for generating administration style interfaces. It abstracts common business application patterns to make it simple for developers to implement beautiful and elegant interfaces with very little effort. This was something I was looking for to use in my NestJS application.

长期作为开发人员,我使用Active Admin插件生成管理样式界面。 它抽象了常见的业务应用程序模式,以使开发人员只需很少的精力即可轻松实现美观而优雅的界面。 这就是我想要在我的NestJS应用程序中使用的东西。

I strongly believe that nestjs-admin will become such a solution in the nearest future but for now, in my humble opinion, it’s not ready for effective commercial use. So after some research, I’ve discovered AdminBro — an auto-generated Admin Panel for Node.js applications which seems to satisfy all my needs. However, from the box, AdminBro provides his plugins only for Express and Hapi frameworks. As long as NestJS is built on top of express.js it should not be too complicated to integrate it.

我坚信nestjs-admin会在不久的将来成为这样的解决方案,但就我个人而言,目前暂时还没有为有效的商业使用做好准备。 因此,经过一番研究,我发现了AdminBro —一个自动生成的Node.js应用程序管理面板,似乎可以满足我的所有需求。 但是,从框开始,AdminBro仅提供Express和Hapi框架的插件。 只要NestJS是在express.js之上构建的,集成它就不会太复杂。

So in this brief tutorial, I will present how you can add the AdminBro backoffice to

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值