How yuriowindiatmoko2401/santun-app-baseline works
Project type and purpose
• This is a full-stack chat application built with Next.js 14, TypeScript, Tailwind CSS.
• It offers real-time messaging using Upstash Redis and Pusher, image uploads via Cloudinary, authentication via Kinde, and other UI niceties (sounds, themes, typing effects).
File structure
• Top-level folders:
• public/ – static assets (avatars, sounds, images)
• src/app/ – Next.js “app” directory (page.tsx, layout.tsx, API routes under app/api)
• src/components/ – reusable UI components (chat, sidebar, providers, UI primitives)
• src/actions/ – client-side action handlers (auth, message)
• src/lib/ – wrappers for external services (db.ts for Upstash Redis, pusher.ts for Pusher, utils.ts)
• src/db/ – dummy data or mocks (dummy.ts)
• src/store/ – state management hooks (e.g., usePreferences, useSelectedUser)
• Config files:
• next.config.mjs, tailwind.config.ts for build and styling
• .env.sample for environment variables (Kinde, Upstash, Cloudinary, Pusher)
README for additional insights
• Confirms tech stack, key features (real-time chat, auth, image uploads).