- Nextjs for backend + frontend
- Supabase (PostgreSQL + object storage)
- tRPC for typesave transfer data between front and back
- Tailwind CSS for styling
- NextAuth.js for all stuff with authentication
- Prisma ORM
- Redis (Upstash) for server side caching
-
Optimistic updates for:
- likes
- Messages
- Bookmarks
-
Login with google
-
Saving image in supabase (May save them in s3)
-
Sorting alhorithms
-
Opportunity for bookmark posts
-
Client and server caching
Post show algorithms:
- new - Show post sorted by date
- hot - Show post sorted by comments count and likes count with time period.
- best - Show post sorted by likes count with time period.
Time period allow show posts with sorting criteria for most relevant posts.
For search algorithms used another patterns:
- new - Show post sorted by date
- best - Show post sorted by likes count without time period.