GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - yytypescript/tracker

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
.idea
.idea
 
 
src
src
 
 
.gitignore
.gitignore
 
 
.prettierrc
.prettierrc
 
 
Dockerfile
Dockerfile
 
 
README.md
README.md
 
 
docker-compose.yml
docker-compose.yml
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 
tslint.json
tslint.json
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

YYTS Tracker

Tracks YYTS's activities.

Usage

Track Slack Member Count

DEBUG=slack-members \
SLACK_OAUTH_ACCESS_TOKEN=xoxp-... \
SLACK_MEMBER_COUNT_FILE=slack-members.csv \
SENTRY_DSN=https://... \
yarn run:track-slack-member-count

Track Connpass Member Count

DEBUG=connpass-members \
CONNPASS_GROUP_URL=https://yyts.connpass.com \
CONNPASS_MEMBER_COUNT_FILE=connpass-member-count.csv \
yarn run:track-connpass-member-count

Upload Slack Member Count Chart Images to AWS S3

DEBUG=upload-chart \
AWS_ACCESS_KEY_ID=<your IAM access key ID> \
AWS_SECRET_ACCESS_KEY=<your IAM secret access key> \
yarn run:uploadChart \
    --region=ap-northeast-1 \
    --bucket=<bucket name> \
    --key=stats/slack-member-count.png \
    --csv=slack-member-count.csv \
    --title=Slackメンバー数

Run All As A Service

SLACK_OAUTH_ACCESS_TOKEN=xoxp-... \
CONNPASS_GROUP_URL=https://yyts.connpass.com \
SENTRY_DSN=https://... \
AWS_ACCESS_KEY_ID=... \
AWS_SECRET_ACCESS_KEY=... \
AWS_S3_BUCKET=... \
AWS_S3_REGION=ap-northeast-1 \
docker-compose up -d

AWS Configuration

Create a new S3 bucket.

Create an IAM policy which is labeled AmazonS3UploadOnlyYYTSChart.

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": "s3:PutObject",
            "Resource": "arn:aws:s3:::<your bucket name>/*"
        }
    ]
}

Create an IAM user and attach the IAM policy above.

Set up the S3 bucket policy.

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "yyts-tracker",
            "Effect": "Allow",
            "Principal": {
                "AWS": "arn:aws:iam::<your AWS ID 12 digits>:user/<your IAM username>"
            },
            "Action": [
                "s3:PutObject",
                "s3:PutObjectAcl"
            ],
            "Resource": "arn:aws:s3:::<your bucket name>/stats/*"
        }
    ]
}
  • s3:PutObject is for making it possible to upload image.
  • s3:PutObjectAcl is for making it possible to add public access right to the image uploaded.

About

No description, website, or topics provided.

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

3 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.