Rest Api Using Google Cloud deployed in App Engine
This is Sample Application for using GCLOUD MySQL in NodeJS Application and deploying it to App Engine
GCLOUD Instance Creation
Connect to the Server from MySQL Workbench or any MySQL Client
Connect To Instance
details present in GCLOUD MYSQL Instance Detail to connect to server via clientRun the scripts classicmodels.sql
and classicmodelsTest.sql
from client
Configure NodeJS Application to use GCLOUD MySQL
Create file config.json
in the below format in “Root” folder
{
"MYSQL_USER": "server user name",
"MYSQL_PASSWORD": "password",
"HOST_NAME": "ip address",
"DATABASE_NAME": "database name"
}
$npm start
$node server.js
$nodemon server.js
Open Link http://localhost:8080/
$npm test
$npm run test-watch
Open Link http://localhost:8080/
console gcloud app deploy