Code to manage the snowpack website.
To install and run this application locally, follow these steps:
To Run the Application you will need to run the go executable. First you will need the necessary secrets and a cloudsql proxy connection
gcloud auth application-default login
~/cloud-sql-proxy --port 3306 snowpack-368423:us-central1:cronos
go run .
from the root github directory to build and run the executable file.Get access to the bitwarden password account and add the variables in the Secure Note titled "Snowpack Website" to your .zshrc file
Make sure you go uncomment the migration function in main.go Make sure you have the following environment variables set, the secrets will come from bitwarden
CLOUD_SQL_USERNAME=<secret>
ENVIRONMENT=development
GCP_PROJECT=snowpack-368423
SENDGRID_API_KEY=<secret>
CLOUD_SQL_CONNECTION_NAME=snowpack-368423:us-central1:cronos
CLOUD_SQL_DATABASE_NAME=<secret>
CLOUD_SQL_PASSWORD=<secret>
GCS_BUCKET=snowpack
To add a new Blog Post to the site, please follow these steps: