【发布时间】:2018-01-16 04:53:30
【问题描述】:
我正在构建一个 Angular 2 网络应用程序,它使用 Java GAE / Cloud Endpoints API 作为后端。我的目标是
- 在单个 Google Cloud Platform 项目中同时运行
my-project - 使用例如编辑单个项目文件夹中的两个部分IntelliJ IDEA,无需在两个 IDE/项目之间切换。
我的现状如下:
目前,我有一个包含我的 API 的 Java App Engine 项目文件夹。这目前部署在my-project。我使用 IntelliJ IDEA 来编辑它。我的后端项目文件夹的基本结构:
Backend
.idea
src/main
java //My entire code is here
webapp
index.html //Just a stub
WEB-INF
appengine-web.xml
web.xml
logging.properties
build.gradle
pom.xml
<Some other files>
此外,我的前端单独有一个 Angular 2 项目文件夹。到目前为止,我只在本地测试过这个 Web 应用程序,从未部署过它。我已经使用 WebStorm 对其进行了编辑。基本文件夹结构:
Frontend
e2e
node_modules
src
app
assets
environments
index.html
stlyes.css
<Some other files>
angular.cli.json
package.json
<Some other files>
现在,我怎样才能将这两个部分合并到一个项目中来实现我上面所说的呢?
【问题讨论】:
标签: java angular google-app-engine intellij-idea google-cloud-platform