简体   繁体   中英

Can I host a website on GitHub Pages if it calls an API to display data?

I'm creating a portfolio website with ReactJS that I plan on hosting on GitHub Pages. In my projects section, I want to access the GitHub API to automatically show some information about my repositories (name, description, link, demo). Is this possible with GitHub pages, or does it fall into the category of a dynamic webpage (which cannot be hosted on GitHub pages)?

Yes, this should work. Even though the Frontend-Files are static you are not actually serving your own API which would need a separate application Server. You are only consuming an API from another Server.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM