How kunal12kumar/sahayakosh works
Project type and purpose
• This is a monolithic, full-stack Next.js application that provides a web portal for borrowers and lenders.
• The purpose is to offer landing pages, user authentication (both borrower and lender), dashboards, loan application and loan opportunity flows, backed by a MongoDB database and Cloudinary for media.
File structure
• Top-level files:
• package.json, package-lock.json: Node dependencies
• next.config.mjs, jsconfig.json, eslint.config.mjs: Next.js and code-style configs
• public/: static assets (images, etc.)
• src/app: Next.js App Router directories
• Landingpage (Aboutus, HowItWork, Review, Tutorial, contactus, globe, slideronfrontpage) – public UI pages
• auth: login and multi-step registration flows for borrower & lender
• api/authenticate: Next.js Serverless API routes for borrowerlogin, borrowersignup, lenderlogin, lendersignup
• borrower / lender dashboards, loanapplication, loanopportunity, root page
• layout.js, globals.css: app-wide layout and styling
• src/components/ui: reusable UI components (carousel, timeline, navbar, etc.)
• src/data: static JSON (e.g., globe.json)
• src/dbconfig: MongoDB configuration (mongodbconfig.js)
• src/models: Mongoose schemas (borrowerregistrationschema.js, lenderschema.js)
• src/lib: utility code (cloudinary integration, helper functions)
README
• Confirms it’s a Next.js app bootstrapped with create-next-app.
• Standard dev commands, Next.js font optimization, and Vercel deployment.