Express vs Nestjs项目结构
我计划在节点中构建一个REST API,该API将由React-Nove Mobile应用程序(使用JWT令牌)和ReactJS Web应用程序(使用Sessions/sessions/http-folly cookies)消费。您是否建议我直接在Express或使用Nestjs之类的框架中写这件?
- 考虑到管理,易于管理,自动化,托管等,我应该如何构建/架构项目以满足上述要求?
- 您会考虑直接在服务器上直接在运行节点上扩展节点应用程序吗?有表现增长吗?
- 我应该将项目分解为3个存储库即:
REST API |后端webui(reactjs)|移动应用(反应)
或
REST API +后端WebUI(reactjs)|移动应用(反应)
欢迎您的想法/建议,请提前感谢。
I am planning to build a rest api in node that will be consumed by a react-native mobile app(using JWT tokens) and reactJS web app(admin UI using sessions/http-only cookies). Would you advise me to write this directly in express or use a framework like nestJS?
- How should I structure/architect the project to meet the above requirements taking into consideration, ease of Management, autoscaling, hosting, etc?
- Would you consider dockerizing the node application over running node directly on the server? is there any performance gains?
- should I break the project into 3 repos ie:
rest api | backend webUI(reactJS) | mobile app (react-native)
or
rest api + backend webUI(reactJS) | mobile app (react-native)
Ideas/advises are welcome please, thank in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我将尝试根据我在两者中的工作经验来回答:
I'll try to answer based on my work experience in both: