A URL Shortener with a built in cache, powered by Google Sheets as the database.
yarn deploy
- Copy .env variables to Cloud Run -> Select url-shortener -> Edit & Deploy New Revision -> Variables & Secrets
- Deploy.
yarn
install dependenciescp .env.example .env
- Create a Google Sheet and get its Id and paste it in the
.env
file under GOOGLE_SHEET_ID.- The ID will be in the URL
https://docs.google.com/spreadsheets/d/[thisistheid]/edit?gid=0#gid=0
- The ID will be in the URL
- Set it to viewable by all.
- Navigate to console.cloud.google.com and enable Google Sheets API
APIs & Services -> Library
and navigate to Google Sheets API - Under Crendentials in left sidebar add API Key
- Fill in .env with GOOGLE_API_KEY