You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

github.com/Peter554/gcp-app-engine-contacts

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/Peter554/gcp-app-engine-contacts

v0.0.0-20210620150001-2dffe200dec4
Source
Go
Version published
Created
Source

gcp-app-engine-contacts

CI

An example app using GCP App Engine with Cloud SQL.

Database preparations

https://cloud.google.com/sql/docs/postgres/connect-app-engine-standard#go

  • Create a Cloud SQL postgres instance.
  • Connect to the instance (gcloud sql connect) and create the contacts table:
create table if not exists contacts (
    id serial primary key,
    name varchar(100),
    email varchar(100)
);
  • Obtain the INSTANCE_CONNECTION_NAME (gcloud sql instances describe).
  • Determine the postgres Data Source Name (DSN): user=postgres password=<password> database=postgres host=/cloudsql/<INSTANCE_CONNECTION_NAME>
  • Set the GitHub actions secret GCP_SQL_DSN.

Service account

FAQs

Package last updated on 20 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts