Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/t3dotgg/1app5stacks
Theo built the same app 5 times because he's dumb
https://github.com/t3dotgg/1app5stacks
elixir golang graphql nextjs phoenix react ruby-on-rails t3-stack
Last synced: 6 days ago
JSON representation
Theo built the same app 5 times because he's dumb
- Host: GitHub
- URL: https://github.com/t3dotgg/1app5stacks
- Owner: t3dotgg
- License: mit
- Created: 2024-10-27T04:46:48.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-15T10:20:10.000Z (2 months ago)
- Last Synced: 2025-01-09T12:14:53.159Z (13 days ago)
- Topics: elixir, golang, graphql, nextjs, phoenix, react, ruby-on-rails, t3-stack
- Language: Elixir
- Homepage:
- Size: 504 KB
- Stars: 118
- Watchers: 2
- Forks: 35
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 1 App, 5 Stacks
I built the same app in 5 stacks\*. Those stacks are:
- Ruby on Rails: https://roundest-rails.fly.dev/
- Elixir + Phoenix: https://roundest-phoenix.fly.dev/
- Go + GraphQL + React SPA: https://roundest-go.vercel.app/
- OG T3 Stack (Next.js/Pages + Prisma): https://roundest-t3.vercel.app/
- Next.js RSCs + App Router: https://roundest-rsc.vercel.app/\* [Ben](https://www.youtube.com/@bmdavis419) wrote all of the Go code and most of the Elixir version
## Line of Code comparison
Don't read too much into this, I just found it interesting.
Note: Both the Elixir and RSC versions have a "turbo" route with a lot of duplicated code, so I included a 2nd count for those with the turbo routes removed.
| Stack | Primary Language LOC | Total LOC |
| ---------------------------------- | --------------------------------------- | ----------- |
| Ruby on Rails | 509 lines (Ruby) | 1,014 lines |
| Elixir + Phoenix\* | 991 lines (Elixir) | 1,395 lines |
| Elixir + Phoenix\* (without turbo) | 832 lines (Elixir) | 1,236 lines |
| Go + gql + React | 440 lines (TypeScript) + 423 lines (Go) | 940 lines |
| OG T3 Stack | 443 lines (TypeScript) | 585 lines |
| RSC version | 427 lines (TypeScript) | 453 lines |
| RSC version (without turbo) | 334 lines (TypeScript) | 360 lines |\* I deleted ~1,000 lines from the Phoenix template (and still had this much code left)