Giter Club home page Giter Club logo

art-thing's Introduction

Art Thing

A demo of Expo Router v3 with API Routes using the Cleveland Museum of Art Open Access API screenshot another screenshot

Stuff it does

  • Lists categories of artwork
  • Lists artwork in each category with a thumbnail
  • Loads individual works with their tombstones
  • Lets you "clap" for the artwork
  • "Clapped" artwork shows up on the Favorites tab

Stuff inside

  • The works of art themselves are pulled from the Cleveland Museum of Art Open Access API, retrieved using TanStack query, with some use of the query client to cache the image mapping for quick partial loading
  • The clapping / favorites functionality is done with Expo Router API routes. Look for the +api files, one to get/ set claps for individual works, and another to read them all back for the Favorites tab.
  • A little bit of Reanimated, because I wanted to slow down the "clapping" due to my hacky local storage implementation.

Prereqs

How to run

  1. Run bun install
  2. Run npx expo start

Caveats

  • The clap data is just wired up with node-persist local data in JSON files. There's no locking of the files or anything, so you can crash it if you try. Was just trying to test routes themselves with something self-contained.
  • I didn't notice this the first time, but it turns out the Museum API has been quite slow lately, so this app is a good test of loading spinners. Once you've loaded data, though, it's a good demonstration of TanStack Query's caching. I could reimplement this with their Github data store and it'd probably be fine. the CDN for images seems quite fast.
  • The app works on web, but I'm getting intermittant CORS errors. Sometimes the same API call works and sometimes it doesn't.

related Code Youngstown presentation

Not much to these slides, but if it helps, it helps. Slides

Keith's contact info

Bird app LinkedIn Discord

art-thing's People

Contributors

keith-kurak avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.