zinovik / bgg-games-ranks-parser

Home Page:https://europe-central2-zinovik-project.cloudfunctions.net/bgg-games-ranks-parser?amount=101

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bgg-games-ranks-parser

Working locally

npm run dev
curl 'http://localhost:8080?amount=101'

Interface:

interface BGGGamesRanksData {
    date: string;
    games: {
        rank: number;
        name: string;
        year: string;
        id: string;
    }[];
}

google cloud setup

create service account

gcloud iam service-accounts create github-actions

add roles (Service Account User and Cloud Functions Admin) to the service account you want to use to deploy the function

gcloud projects add-iam-policy-binding zinovik-project --member="serviceAccount:github-actions@zinovik-project.iam.gserviceaccount.com" --role="roles/cloudfunctions.admin"

gcloud projects add-iam-policy-binding zinovik-project --member="serviceAccount:github-actions@zinovik-project.iam.gserviceaccount.com" --role="roles/iam.serviceAccountUser"

creating keys for service account for github-actions GOOGLE_CLOUD_SERVICE_ACCOUNT_KEY_FILE

gcloud iam service-accounts keys create key-file.json --iam-account=github-actions@appspot.gserviceaccount.com
cat key-file.json | base64

About

https://europe-central2-zinovik-project.cloudfunctions.net/bgg-games-ranks-parser?amount=101

License:Apache License 2.0


Languages

Language:HTML 97.3%Language:TypeScript 2.7%Language:JavaScript 0.1%