简体   繁体   English

如何整合蚂蚁设计和arangodb?

[英]How to integrate ant design and arangodb?

I'm gonna work with ant design as the frontend of a RESTful datadriven SPA that's gonna deal with CRUD operations, emails, reports, sessions, file uploads, authentication and authorization. 我将使用ant设计作为RESTful数据驱动SPA的前端,该SPA将处理CRUD操作,电子邮件,报告,会话,文件上传,身份验证和授权。

So I'm wondering if Foxx is gonna be enough as the backend technology? 所以我想知道Foxx是否足以作为后端技术? or do I need to use extra libraries, or a foxx client or a framework such as expressjs, sailsjs or feathersjs? 还是我需要使用额外的库,foxx客户端或诸如expressjs,sailsjs或feathersjs之类的框架?

If someone could guide me through the process of setting up the fullstack, it would be much appreciated. 如果有人可以指导我完成整个堆栈的设置过程,将不胜感激。 Thanks in advance for any help 预先感谢您的任何帮助

Foxx is a MicroService offering, allowing you to host microservices running right inside the ArangoDB database. Foxx是一项MicroService产品,可让您托管在ArangoDB数据库内部运行的微服务。

What makes Foxx powerful is that it is able to publish these microservices as REST API endpoints, allowing your application to query them directly. Foxx之所以强大,是因为它能够将这些微服务发布为REST API端点,从而使您的应用程序可以直接查询它们。

Additionally, Foxx can host static pages, so the HTML documents you need your client to download can also be served by Foxx. 此外,Foxx可以托管静态页面,因此Foxx也可以提供需要客户端下载的HTML文档。

When implementing your front end / dev stack framework, the best way to think of Foxx is that it can host both static web pages as well as REST API endpoints. 在实现前端/开发堆栈框架时,考虑Foxx的最佳方法是它既可以承载静态网页,也可以承载REST API端点。

Foxx can also integrate with other systems from an authentication/authorisation point of view, including JWT. Foxx还可以从身份验证/授权的角度与其他系统集成,包括JWT。

Personally, I develop sites that integrate with Azure Active Directory OAuth, and unfortunately that is one OAuth provider Foxx cannot natively interact with. 我个人开发的网站与Azure Active Directory OAuth集成,但是不幸的是,这是一个OAuth提供者Foxx无法与之进行本地交互的地方。 So what I do is host a Node.JS server in front of Foxx, and it just performs the OAuth security services and forwards calls (with appropriate auth data) to the Foxx back end. 因此,我要做的是在Foxx前面托管一个Node.JS服务器,它仅执行OAuth安全服务并将呼叫(带有适当的身份验证数据)转发到Foxx后端。

For your implementation of the Ant Framework, just think of Foxx as a REST API that your framework can communicate with, and serve your HTML assets through Foxx static files. 对于Ant框架的实现,只需将Foxx视为框架可以与之通信并通过Foxx静态文件为HTML资产提供服务的REST API。

Have a look at a 'ToDo' implementation in Foxx to get some ideas on how you can use Foxx to host apps. 查看Foxx中的“ ToDo”实现,以获取有关如何使用Foxx托管应用程序的一些想法。

It's amazing how fast Foxx is with data queries. Foxx使用数据查询的速度如此之快令人惊讶。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM