我想用https://github.com/projectblacklight/blacklight做一个项目 我可以将它用作带有 Vue 前端的 Rails API 吗?
它是一个返回 JSON 的 Rails 引擎,但它传统上在 Rails 应用程序中用作插件/Gem(实际上它是一个类似的引擎)。
https://github.com/projectblacklight/blacklight/wiki 每个 Blacklight 搜索都提供搜索结果的 JSON、RSS 和 Atom 响应
我想用https://github.com/projectblacklight/blacklight做一个项目 我可以将它用作带有 Vue 前端的 Rails API 吗?
它是一个返回 JSON 的 Rails 引擎,但它传统上在 Rails 应用程序中用作插件/Gem(实际上它是一个类似的引擎)。
https://github.com/projectblacklight/blacklight/wiki 每个 Blacklight 搜索都提供搜索结果的 JSON、RSS 和 Atom 响应
blacklight-vue是专门为此目的而制作的引擎。blacklight-vue-demo是使用此引擎构建的示例。使用 Vue 构建任何 Ruby on Rails 应用程序的通用答案是使用Webpacker gem。
我正在研究这个,到目前为止我认为答案是肯定的。斯坦福大学的 Jason Coyne使用 Ember 和 Blacklight 构建了一个应用程序
以下是围绕这个问题的更多讨论。+ https://github.com/projectblacklight/blacklight/wiki/JSON-API + https://github.com/projectblacklight/blacklight/pull/588 + https://groups.google.com/forum/#!topic /blacklight-开发/TIYCjemfp3A
我找不到很多关于此的文档。