Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
ProtoPediaのバッジ表示をVercelのServerless Functionsで実現...
Search
yamaccu
December 20, 2023
0
77
ProtoPediaのバッジ表示をVercelのServerless Functionsで実現している話
Serverless Frontend Meetup #4 「FaaS」で発表した内容
yamaccu
December 20, 2023
Tweet
Share
Featured
See All Featured
Visualization
eitanlees
150
17k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
0
3.4k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
170
Reality Check: Gamification 10 Years Later
codingconduct
0
2k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
7.9k
Embracing the Ebb and Flow
colly
88
5k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.8k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
140
Unsuck your backbone
ammeep
671
58k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
240
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
110
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
64
Transcript
ProtoPediaのユーザー情報を Vercel Serverless Functionで バッジ化して表示してみた は じ め に protopedia
Shields.io vercel つ く っ た も の
自己紹介 やまっく ▪職業 : ハードウェアエンジニア 自動運転関連のハードウェア設計開発してます ▪趣味 : 電子工作、プログラミング ラズパイやArdui noなどでなんか作ったり、 ちょっとしたアプリ作って公開したりしてます https://github.com/yamaccu https://twitter.com/YY87750722
は じ め に protopedia Shields.io vercel つ く っ た も の
つくったもの コレ は じ め に protopedia Shields.io vercel つ
く っ た も の
は じ め に protopedia Shields.io vercel つ く っ
た も の 「protopedia」について 自分で作った作品を登録したり、他の人の作品を見たりすることができる webサイトです。 Qiitaが技術情報を登録するサービスなのに対して、ProtoPedi aは成果 物を登録するイメージです。
は じ め に protopedia Shields.io vercel つ く っ
た も の 「Shields.io」について 様々な情報をバッジ形状にしてSVGで表示できるようにしてくれるサービスです。 GitHubのReadmeなどによく使われています。
は じ め に protopedia Shields.io vercel つ く っ
た も の 「vercel serverless functi on」について Vercelというホスティングサービスの、サーバーレス機能です。(そのまま・・ サーバーレス機能とは、サーバーの確保や面倒な設定などなしに、web APIが作成 できる機能です。 Node.js、GO、Python、Rubyに対応しています。
は じ め に protopedia Shields.io vercel つ く っ
た も の 「vercel serverless functi on」について 使い方 Gi thubアカウントを作成(Gi tlabでもOK) Githubアカウントを使ってSi gn Up Githubにプログラムをアップ Vercelにデプロイ
は じ め に protopedia Shields.io vercel つ く っ
た も の 「vercel serverless functi on」について Hello World !!
は じ め に protopedia Shields.io vercel つ く っ
た も の 「つくったもの」について システム構成 実装:Node.js API通信:axios
は じ め に protopedia Shields.io vercel つ く っ
た も の 「つくったもの」について プログラム
は じ め に protopedia Shields.io vercel つ く っ
た も の 「つくったもの」について クエリパラメータの設定 クエリパラメータ
は じ め に protopedia Shields.io vercel つ く っ
た も の 「つくったもの」について ・axiosライブラリを使ってProtoPedi a APIのデータを取得 ・アクセストークンは悪用されると危ないので、Vercel側の環境変数に登録
は じ め に protopedia Shields.io vercel つ く っ
た も の 「つくったもの」について ・取得したデータを処理して、Post数、Vi ew数、Good数を抽出
は じ め に protopedia Shields.io vercel つ く っ
た も の 「つくったもの」について axiosでshieldsioへ リクエスト SVGデータをリターン
つくったもの コレ は じ め に protopedia Shields.io vercel つ
く っ た も の
は じ め に protopedia Shields.io vercel つ く っ
た も の 「つくったもの」について APIへのアクセスを補助するページを作成
Thank you! ご清聴ありがとうございました!