26. CDはwebアプリに最適
nクラウドサービスを開発・デプロイする
• ローカルで開発
• コーディング
• ビルドとテスト
• ローカル環境で実行
• CI/CD側に投げる
• 自動ビルドとテスト
• 成功したらデプロイ
• web経由で利用可能になる
nフレームワーク
• Python: Streamlit, Flask, Django, dash, FastAPI
• JavaScript: Node.js, React
• Ruby on Rails
• PHP: Laravel
Webix provides a great number of JavaScript UI
widgets with a pefect look and feel great on various
devices. All of them can be effortlessly customized in
accordance with your preferences thanks to the rich
and clear API.Kelluvuus - Own work
CC BY-SA 4.0
27. streamlit:軽量webアプリ作成ライブラリ
画像をダウン
ロード
RGBのヒストグ
ラムを計算
ラジオボダンで
RGBを選択 ローカルでアクセス
した画面
main.py
import numpy as np
import pandas as pd
import streamlit as st
from skimage.io import imread
# download the image
img_url = 'https://upload.wikimedia.org/wikipedia/commons/thumb/d
/df/Mount_Fuji_from_Mount_Aino.jpg/640px-Mount_Fuji_from_Mount_Ai
no.jpg'
im = imread(img_url)
st.image(im, caption='image from wikimedia commons’,
use_column_width=True)
# show histgram of all colors
hist_red, _ = np.histogram(im[:, :, 0], bins=64)
hist_green, _ = np.histogram(im[:, :, 1], bins=64)
hist_blue, _ = np.histogram(im[:, :, 2], bins=64)
hist = np.stack((hist_red, hist_green, hist_blue), axis=1)
df_hist = pd.DataFrame(hist, columns=['R', 'G', 'B'])
st.bar_chart(df_hist)
# choose one color
color = st.radio(
"choose R, G, or B",
('R', 'G', 'B'))
if color == 'R’:
df_hist = pd.DataFrame(hist_red)
st.bar_chart(df_hist)
if color == 'G’:
df_hist = pd.DataFrame(hist_green)
st.bar_chart(df_hist)
if color == 'B’:
df_hist = pd.DataFrame(hist_blue)
st.bar_chart(df_hist)
53. 現代社会:ほぼシステム外部
nやり取りにはAPI
を利用
nクラウドにはWeb
API
• 楽天API
• Yahoo API
• Amazon API
• Google Cloud API
• 【2023年最新】作りたいアプリ
別API一覧を全紹介〜随時更新〜
n開発にはSDKを利
用
社内サーバ
社内DB 本社システム 入退室
システム
クラウド
他社
システム
工場システム
社内PC
開発する
システム
エンドユーザー
API
API
API
API
API
SDK
SDK
SDK
SDK