DevKoko
DevKoko
TTCTheo's Typesafe Cult
Created by Huijiro on 7/16/2024 in #questions
Trying to convince boss to switch from Angular to something else, he only accepts React.
how about Astro w/ React and Svelte components
10 replies
TTCTheo's Typesafe Cult
Created by oz on 7/12/2024 in #questions
Best Frontend Testing System?
oh yes Vitest! I've been slowly migrating to it from Jest
24 replies
TTCTheo's Typesafe Cult
Created by Ave (Skyler) on 7/5/2024 in #questions
TypeScript ORMs
I've used Sequelize for small apps before and it worked pretty well. Not sure how well it would scale though
10 replies
TTCTheo's Typesafe Cult
Created by Vap0r1ze on 7/5/2024 in #questions
Is there any React frameworks that fit my needs?
Have you tried Astro ? Their island architecture for component rendering might fit your use case. You can mix React and Vue together as framework components during your migration.
7 replies
TTCTheo's Typesafe Cult
Created by JulieCezar on 7/12/2024 in #questions
How to implement a "local first" Mobile app storage
However, creating your own solution is a great learning opportunity too. In that case, you might find RxDB useful, since it is designed specifically for local-first apps and data syncing with your backend.
14 replies
TTCTheo's Typesafe Cult
Created by JulieCezar on 7/12/2024 in #questions
How to implement a "local first" Mobile app storage
From observing the behaviors from some popular local-first apps (AnyType, Obsidian, Notion?), a common approach is to: 1. Save the data locally if no internet connection 2. If connection is available, sync to central server and distribute changes to all other users 3. Pull changes from central server to update local storage with other users' changes The data structure used in these collaborative apps is most likely CRDT (conflict-free replicated data type), which replicates the same data to all users and allows them to update their copy of the data concurrently. The key idea is that all the replicated data will eventually merge together in a central location, and redistributed back to all users. If you just want to get something working, I would suggest using a library / platform like Liveblocks. They can handle the infrastructure and backend logic for you for FREE up until 100 monthly active users. Here's an example of a collaborative todo list in React Native
14 replies
TTCTheo's Typesafe Cult
Created by oz on 7/12/2024 in #questions
Best Frontend Testing System?
Honestly "best" is subjective, so you would have to experiment to see what works for you. But all the tests you write can be run in GitHub workflows.
24 replies
TTCTheo's Typesafe Cult
Created by oz on 7/12/2024 in #questions
Best Frontend Testing System?
PostHog for analytics, feature flags and A/B testing; open-source and can be self-hosted
24 replies
TTCTheo's Typesafe Cult
Created by oz on 7/12/2024 in #questions
Best Frontend Testing System?
Disclaimer: I'm still exploring frontend testing myself Jest + react-testing-library might be worth looking into for unit & integration tests Cypress for e2e tests, integration tests, component tests, unit tests OR Playwright for the occasional e2e tests using real browsers
24 replies