Git Product home page Git Product logo

lazy-tarot's Introduction

Lazy tarot. POC.

This is a web app that may grow into something big. The main goal is to try new tech, look at some problems and ways to solve them. Basically to educate myself.

But also this app already is used by somebody. The goal of the app is to help a person to self-analyze through vague description of a tarot card.

This is a monorepo. The API is a cloudflare worker with trcp endpoint. Database - supabase (postgresql)

The mobile part is ionic. Since JIT is available for javascript on mobile only for web view I decided that it will be the best fit for the purpose.

The web app is Remix.

Animations - react-spring

Language - TypeScript.

To run the apps, you should also fill the environment variables. You can find them in the .env.example files, or in env.ts files.

WEB: It is harder than it seems

  1. We have SSR + hydration. Hydration may happen way to late (i.e. slow mobile connection).
  2. We use a lot of random values to render UI (deck). So imagine what could happen if we would generate them during both SSR and CSR
  3. We want give the user ability to share their card, and keep the APP working even if it has not been hydrated yet. So some of the state should live in the url.
  4. We don't want to load all the data to the client, but we also want the client to be able to use the app offline. So some of the state should live on the client.
  5. We want random cards appear random, wich means a really small chance of getting the same card twice. So we have to persist some state on the client.
  6. We also want to share the code between web and mobile to save some dev time.

These things create a lot (A LOT) of edge cases that we should handle.

Just FYI.

lazy-tarot's People

Contributors

the-main-thing avatar turbobot-temp avatar

Watchers

 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.