Firebase 和 json-server

Firebase and json-server

我目前正在使用 json-server repo 为原型模拟我的后端数据库和服务器。对于use/start json-server,我需要执行npm run json:server.

我已经将我的项目部署到 firebase,但找不到从我自己的 git-bash.[=13 访问 cmd 或 运行 该命令的方法=]

有什么方法可以做到这一点,或者 firebase 不允许 运行 命令结束?

如果您想在 Firebase 上运行 小 Node.js 片段,请查看 Firebase 托管和 Cloud Functions 之间的集成。

另请参阅 what can you host on Firebase? and the overview documentation for running micro-services on Firebase Hosting and Cloud Functions 上的 Firebase 文档。