GithubHelp home page GithubHelp logo

metaskills / github-readme-stats-lambda Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 11 KB

Thanks! https://github.com/anuraghazra/github-readme-stats

License: MIT License

JavaScript 83.58% Dockerfile 1.19% Shell 15.24%
lambda serverless github github-readme stats

github-readme-stats-lambda's Introduction

Github Readme Stats (Lambda)

Copy of this project (https://github.com/anuraghazra/github-readme-stats) deployable to AWS Lambda. Includes a few enhancements.

  • Pin titles link to the repository.
  • Pin titles will use the owner.login in the link.

Setup

Only Docker is needed.

$ ./bin/bootstrap
$ ./bin/setup
$ ./bin/test

Deploy

Make sure you have an AWS account and a GitHub token. Your GitHub username and token may be in your git config. If not, set these variables manually or via the deploy command.

export GH_USER=$(git config github.user)
export GH_TOKEN=$(git config github.token)

If you do not have an S3 bucket for your CloudFormation artifacts, please create one.

./bin/run aws s3 mb "s3://cloudformation.${GH_USER}"

Now you can deploy the AWS Lambda.

$ GH_USER=$GH_USER \
  GH_TOKEN=$GH_TOKEN \
  CLOUDFORMATION_BUCKET="cloudformation.${GH_USER}" \
  ./bin/deploy

You should see your Lambda's invoke URL in the outputs of the deploy command.

Outputs
--------------------------------------------------------------------------------
Key                 GithubReadmeStatsInfoInvokeUrl
Description         Lambda Invoke URL
Value               https://as82ksadfsd.execute-api.us-east-1.amazonaws.com/prod/

Using this base URL you can leverage all the options of the existing project. For example, /prod/api/pin/?username=customink&repo=lamby.

github-readme-stats-lambda's People

Contributors

metaskills avatar

Stargazers

Nirmal avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.