-
Java - 1.8.x
-
Maven - 3.x.x
-
Mysql - 5.x.x
4.Google Cloud Platform SDK
1. Clone the application
git clone https://github.com/ashishkeshu/googlecloud-springboot
2. Create Mysql database
create database demo_db
3. Change mysql username and password as per your installation
-
open
src/main/resources/application.properties
-
change
spring.datasource.username
andspring.datasource.password
as per your mysql installation or goole cloud sql -
change
spring.cloud.gcp.project-id
,spring.cloud.gcp.credentials.location
andgoogle.cloud.storage.bucket.name
4. Setup the Google Cloud SDK
Complete the setup by selecting google cloud platform project and region.
5. Build and run the app using maven
Go to the project directory and run:
mvn clean appengine:run
The app will start running at http://localhost:8080.
swagger is implemented with project so just hit http://localhost:8080/swagger-ui.html
You can find the more tutorial on
https://codelabs.developers.google.com/codelabs/cloud-app-engine-springboot/#0/ https://codelabs.developers.google.com/codelabs/spring-cloud-gcp-gcs/#0/