{"id":19037078,"url":"https://github.com/retgits/bitly-lambda","last_synced_at":"2025-10-17T11:25:27.912Z","repository":{"id":57590043,"uuid":"143656953","full_name":"retgits/bitly-lambda","owner":"retgits","description":"A serverless app to get bitlink stats","archived":false,"fork":false,"pushed_at":"2018-09-26T03:07:28.000Z","size":37,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-02T06:14:11.642Z","etag":null,"topics":["aws-lambda","bitly-api","lambda","serverless"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/retgits.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-06T00:11:41.000Z","updated_at":"2019-08-02T09:33:26.000Z","dependencies_parsed_at":"2022-09-06T12:11:47.691Z","dependency_job_id":null,"html_url":"https://github.com/retgits/bitly-lambda","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retgits%2Fbitly-lambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retgits%2Fbitly-lambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retgits%2Fbitly-lambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retgits%2Fbitly-lambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/retgits","download_url":"https://codeload.github.com/retgits/bitly-lambda/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240093186,"owners_count":19746786,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws-lambda","bitly-api","lambda","serverless"],"created_at":"2024-11-08T21:58:37.038Z","updated_at":"2025-10-17T11:25:22.879Z","avatar_url":"https://github.com/retgits.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bitly-lambda - A serverless app to get Bitly statistics\r\n\r\nA serverless tool designed to help get statistics from Bitly.\r\n\r\n## Layout\r\n```bash\r\n.                    \r\n├── database            \r\n│   └── database.go     \u003c-- Utils to interact with the SQLite database\r\n├── test            \r\n│   └── event.json      \u003c-- Sample event to test using SAM local\r\n├── .gitignore          \u003c-- Ignoring the things you do not want in git\r\n├── LICENSE             \u003c-- The license file\r\n├── main_test.go        \u003c-- Test the code\r\n├── main.go             \u003c-- The Lambda code\r\n├── Makefile            \u003c-- Makefile to build and deploy\r\n├── README.md           \u003c-- This file\r\n└── template.yaml       \u003c-- SAM Template\r\n```\r\n\r\n## Installing\r\nThere are a few ways to install this project\r\n\r\n### Get the sources\r\nYou can get the sources for this project by simply running\r\n```bash\r\n$ go get -u github.com/retgits/bitly-lambda/...\r\n```\r\n\r\n### Deploy\r\nDeploy the Lambda app by running\r\n```bash\r\n$ make deploy\r\n```\r\n\r\n## Parameters\r\n### AWS Systems Manager parameters\r\nThe code will automatically retrieve the below list of parameters from the AWS Systems Manager Parameter store:\r\n\r\n* **/bitly/apptoken**: Your personal OAuth token (check the Bitly documentation on how to get this parameter)\r\n\r\n### Deployment parameters\r\nIn the `template.yaml` there are certain deployment parameters:\r\n\r\n* **region**: The AWS region in which the code is deployed\r\n* **s3Bucket**: The name of the S3 bucket in which the SQLite file is stored\r\n* **tempFolder**: The temp folder where to store the SQLite file while processing (for deployments to AWS Lambda, this should be set to `/tmp`)\r\n\r\n## Make targets\r\nbiylt-lambda has a _Makefile_ that can be used for most of the operations\r\n\r\n```\r\nusage: make [target]\r\n```\r\n\r\n* **deps**: Gets all dependencies for this app\r\n* **clean** : Removes the dist directory\r\n* **build**: Builds an executable to be deployed to AWS Lambda\r\n* **test-lambda**: Clean, builds and tests the code by using the AWS SAM CLI\r\n* **deploy**: Cleans, builds and deploys the code to AWS Lambda","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fretgits%2Fbitly-lambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fretgits%2Fbitly-lambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fretgits%2Fbitly-lambda/lists"}