简体   繁体   English

构建一个React / Spring Boot / MongoDB应用程序

[英]Building a React/Spring Boot/MongoDB Application

I have created a React application using create-react-app. 我已经使用create-react-app创建了一个React应用程序。 I now want to send the application to a friend so that they can use it. 我现在想将应用程序发送给朋友,以便他们可以使用它。 However, I do not want to have the hassle of all of the files, dependencies etc. Is there a way I can 'build' the application into one executable that can be run on any computer? 但是,我不想麻烦所有文件,依赖项等。是否有办法将应用程序“构建”成可以在任何计算机上运行的可执行文件? I have no need for the application to run online, localhost is fine. 我不需要应用程序在线运行,localhost很好。 I should also mention that I have a Java Spring Boot backend and a MongoDB database that are both used by the application. 我还应该提到,我有一个Java Spring Boot后端和一个MongoDB数据库,它们都被应用程序使用。

Thanks! 谢谢!

如果要与Spring Boot后端集成,则只需要将Reactjs应用程序的build文件夹中的最终构建文件放入Spring Boot项目的静态文件夹中。

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

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