How ksairatna37/lighter-app-new works
Project type and purpose
• From the file tree and README, this is a full-stack decentralized finance (DeFi) web application.
• Front-end: React + TypeScript single-page app (SPA) built with Vite, Tailwind CSS, and shadcn-ui components.
• Back-end: A lightweight Node.js API (in server/api.js and server/auth_generator.js) that handles authentication-nonce generation or other small server-side operations.
• External system: Blockchain network (e.g., Ethereum) via wallet providers (MetaMask, WalletConnect).
File structure
• Top-level directories:
• src/ – UI code (pages/, components/, hooks/, lib/, config/)
• server/ – Node.js API endpoints and auth generator
• public/ – static assets, robots.txt, web.config
• dist/ – production build output (static assets, index.html)
• .github/workflows/ – CI/CD pipelines (build & deploy via GitHub Actions)
• Key patterns:
• SPA architecture: src/main.tsx boots the React app, src/pages defines routes.
• UI library: components/ui contains reusable design system primitives.
• hooks and lib for business logic and utility functions.
• server/ is a monolithic API (no separate microservices).
README for additional insights
• Tech stack: Vite, React, TypeScript, shadcn-ui, Tailwind CSS.
• Dev workflow: clone, npm i, npm run dev launches Vite dev server.
• Deployment: integrated with Lovable (auto-publish), GitHub Actions handles CI/CD.