Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
ProtoPediaのバッジ表示をVercelのServerless Functionsで実現...
Search
yamaccu
December 20, 2023
96
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
ProtoPediaのバッジ表示をVercelのServerless Functionsで実現している話
Serverless Frontend Meetup #4 「FaaS」で発表した内容
yamaccu
December 20, 2023
Featured
See All Featured
Done Done
chrislema
187
17k
For a Future-Friendly Web
brad_frost
184
11k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
610
Side Projects
sachag
456
43k
Music & Morning Musume
bryan
48
7.5k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.2k
How to make the Groovebox
asonas
2
2.5k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
880
Paper Plane (Part 1)
katiecoart
PRO
2
12k
Site-Speed That Sticks
csswizardry
13
1.6k
The Invisible Side of Design
smashingmag
301
52k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
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! ご清聴ありがとうございました!