iT邦幫忙

第 12 屆 iThome 鐵人賽

DAY 4
0
Modern Web

從0到1: 5個月轉職工程師大挑戰系列 第 5

Day 5: 試著用 React 重做 Python API Project { D1 }

嗨,我是 Roy
上次面試之後覺得自己的實作還是太鈍了,決定在刷題之於試試能不能不看教學,自己獨立做一個小專案。

「Concert Preparer」

讓你在去演唱會前能先熟悉曲目的好夥伴

看了一些API之後,想到之前上Python課的時候,有用 Ticketmaster API + ITunes API 做了一個期末專案。這個專案主要目的就是輸入關鍵字搜尋API,將API拿到的資料Cache,再把拿到的資料餵給第二個API去拿到資料,最後輸出一個CSV檔案。

當初只有Python純後端,現在我想要試試看能不能用React跟Firebase重新實現同樣的功能,再加上一個前端的畫面,而不只是用Terminal輸入。

當初的專案內容可以在這裡看 GitHub Repo

Project Description

  1. 用 TicketMaster API,輸入美國的五碼Postal Code搜尋最近的演唱會,會秀出表演的藝人、演唱會名字、日期時間跟演唱會的連結
  2. 用 iTunes research API 搜尋並列出該藝人(們)的最近10首歌曲

TicketMaster API

WELCOME TO THE FAN-CENTRIC PLATFORM. – The Ticketmaster Developer Portal

  1. Register the account
    https://ithelp.ithome.com.tw/upload/images/20200905/20111749bdoDmuFaKq.png
  2. Create an app
    https://ithelp.ithome.com.tw/upload/images/20200905/20111749701IvYwX3N.png
  3. Get the API key

iTunes API

iTunes Store API
應該可以直接用
https://ithelp.ithome.com.tw/upload/images/20200905/20111749CK7cNESFji.png

Database?

可能需要,試著用 Firebase real-time database
如果簡單版本先建完,我也想試試看能不能用 Authentication,兩年前用過一次就沒再碰過,但如果能建立起來也是一個很好的挑戰!

Firebase

  1. Use your google account to Create a project
    https://ithelp.ithome.com.tw/upload/images/20200905/20111749Zes7bSu1C6.png
  2. Name your project
    https://ithelp.ithome.com.tw/upload/images/20200905/20111749NOQxGsm8Ja.png
  3. GA可開可不開
    https://ithelp.ithome.com.tw/upload/images/20200905/20111749QjfFV5hWZO.png
  4. 開好之後先放著,晚點會用到
    https://ithelp.ithome.com.tw/upload/images/20200905/20111749gH5Vl3iIYm.png

GitHub

先開好一個空的Repo
我的在這裡:Concert-Preparer


設計

Low-fi Wireframe

因為之前的Project沒有UI,我稍微用Figma畫了一下可能會有的Layout:
https://ithelp.ithome.com.tw/upload/images/20200905/20111749EW33k4IIJd.png
https://ithelp.ithome.com.tw/upload/images/20200905/20111749hkrzNyv2fU.png

User Flow

輸入Postal code (eg: 10001)
按下搜尋
網站秀出一筆演唱會資訊,跟十筆歌曲資訊
使用者可以點演唱會連結


前置工作大致完成,如果還需要什麼之後用到再補
下一篇,我們可以開始React的部分,把react app開起來先!
接下來會穿插著專案進度跟刷題的紀錄

希望我的分享有幫助到你

謝謝你的追蹤
Stay tuned and see you tomorrow!


About Roy

Social Media
Facebook - RoyWannago
Twitter - @roywannago
Instagram 分享設計與程式學習 - @royflwdesign
Instagram 分享 UX 迷因 - @UX_WTF
YouTube 分享美國生活- RoyWannago YouTube


上一篇
Day 4: 費曼技巧與轉職學習計畫
下一篇
Day 6: 為什麼用React?什麼是Create-React-App? { D2 }
系列文
從0到1: 5個月轉職工程師大挑戰7
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言