TurnOnline.biz ecosystem-frontend maven archetype designed for Google App Engine Java 1.8 standard environment.
Go to [https://cloud.google.com/appengine/downloads] and download JAVA environment - [https://cloud.google.com/appengine/docs/standard/java/download]
To simplify logged in process download gcloud CLI. Go to [https://cloud.google.com/sdk/docs/#install_the_latest_cloud_tools_version_cloudsdk_current_version] and follow instructions.
Prior to create archetype you need to create new project (or use already created). You can create new Google App engine project here:
https://console.cloud.google.com/projectcreateStore your project id (not project name!) - you will need it to setup Firebase and also for running of archetype.
If you have successfully created Google App engine project use project id to configure firebase. Go to https://console.firebase.google.com
and click [Add project] button. New popup will show where you select your project (Firebase will show all projects for logged in user).
Next click on [Create project] button and you are done.
In order to generate microservice template from the archetype use the following command. You will be prompted to specify the information about the new project you want to create; the standard maven GAV (Group, Artifact, Version) and next ones needed for Google Cloud: AppEngineId.
mvn archetype:generate \
-DarchetypeGroupId=biz.turnonline.ecosystem.archetype \
-DarchetypeArtifactId=turnonline-ecosystem-frontend-archetype \
-DarchetypeVersion=1.0In order to run properly your project you have to make additional setup. Open your project and search for
{project}/src/main/resources/identity.propertiesRead comments on all properties and fill them accordingly.
After successful setup of archetype you can run your project (for instance use Google Cloud Tools plugin) or run mvn appengine:run. Go to
http://localhost:8080 where you will see more information about next steps and useful links.
To deploy application simply run following command:
mvn appengine:deploy