NEW REACT PROJECT – Public APIs List

Category: | Posted on:February 12, 2024
public apis list

I built a simple app called Public APIs List that prints a list of all the free APIs available through public-api.

Objective

I want to get more comfortable with the JavaScript fetch API. I needed inspiration for another project to work on and figured I’d start by looking at big lists of free APIs that I could hook into. Turns out there are APIs for APIs. So just for some practice I grabbed one and spat out the full list for easier reading.

Development

There’s only one component. It uses a basic asynchronous fetch to grab the API entries. Then they get mapped into list items and spit out their titles.

This is my second go with Vite and it seemed to go a little smoother than last time. I played around with suspending the cache, since the app is so threadbare and that seemed to help with the refresh issues a bit.

Hurdles

The refresh issues with Vite are still there. I took to re-starting the dev server any time it happened. Fortunately the startup is lightning fast. I can’t imagine this is the normal workflow. There’s still something I’m missing.

Takeaways

There’s more data attached to each entry in the API, so I’ll probably enhance this project a bit more before picking one of the APIs to build out into another app. Hopefully I’ll work out a better solution for Vite refreshing as I go.

Tags: , , ,

Related Logs


  • UPDATE – Space Invaders

    January 28, 2025

    Quick presentational update to the Space Invaders project. Keep Shields Centered On Hit Shields will now automatically maintain a centered position when hit my an alien missile. I initially thought this was going to involve some math to determine whether the missile hit on the right or left side. I even put together a formula […]

    Continue Reading
  • NEW PROJECT – Space Invaders

    January 27, 2025

    Space Invaders is a bare-bones facsimile of the classic arcade game of the same name. Objective I wanted to take what I learned from the Asteroids Tutorial in my last project and iterate without the training wheels this time. Space Invaders has more lateral movement from the player and hostiles than in Asteroids, and has […]

    Continue Reading
  • NEW PROJECT – Asteroids

    January 9, 2025

    Asteroids is a bare-bones facsimile of the classic arcade game of the same name. Objective I want to focus on more creative projects this year in order to break up the grind of work skill development. I’ve always been passionate about game design, and there are a lot of free tools to chose from. My […]

    Continue Reading