A sample Google Cloud application using
- a Vue.js frontend,
- a Node.js express backend,
- a Google Cloud Function.
Things to note:
- Fronted/Backend are deployed to Google Cloud as two services in an App Engine. The frontend is the default service of the App. Routing to the backend is done via a dispatch.yaml.
- When running locally, the Google Cloud Function is executed using the Functions Framework.
- Node.js,
- Vue.js CLI,
- Google Cloud SDK for deploying to Google Cloud.
To build, execute build.sh
.
To run locally, execute run.sh
. Note that run.sh starts services in the background.
Termination is not supported yet; the Node.js processes need to be killed manually to
terminate the application.
To deploy to Google Cloud, use Google Cloud SDK to link your
Google Cloud project. Then execute deploy.sh
.