How aarlyup/aarlytech works
Project type and purpose
• This is a full-stack MERN (MongoDB, Express, React, Node.js) web application called “Aarly” for startup funding discovery. It provides a React/Vite/Tailwind-based frontend, a Node/Express/MongoDB backend, and integrates with several external services (email, OAuth, file storage, WhatsApp).
File structure
• Top-level:
• src/ – React application (TypeScript, Vite, Tailwind)
• public/ & index.html – static assets and root HTML
• server/ – Express API server with MVC organization:
– controllers/, models/, routes/, middleware/, config/, utils/
• Config files: .env.example, netlify.toml, vite.config.ts, tsconfig*.json, postcss.config.js, tailwind.config.js
• Backend uses environment-based config, Passport.js for Google OAuth, JWT auth, Mongoose models for various entities (User, Funding sources, Newsletter, WhatsApp, etc.).
• Frontend uses React Router, Contexts for Auth/Funding/UI state, UI components under components/, pages under pages/, API client in src/config/api.ts.
README for additional insights
• Tech stack summary, features, setup instructions, and a list of API endpoints.
• Authentication (OTP, JWT, Google OAuth), funding discovery, investor matching, news, resource library, user dashboard.
Detailed break-down of components
• UI Layout (Header, Footer, Sidebar)
• Pages & Routes (Home, Funding pages, Admin Dashboard, Auth)
• Context Providers (AuthContext, FundingContext, UiContext)
• API Client (src/config/api.ts)
• Routing layer (server/routes/*.js)
• Controller layer (server/controllers/*.js)
• Model layer (server/models/*.js)
• Middleware (auth, adminAuth, errorHandler)
• Config modules (database, passport, cloudinary, WhatsApp)
• Utility modules (email, JWT)
• External services cluster:
• Google OAuth
• Resend (email)
• Cloudinary (images)
• WhatsApp API