{"id":26038901,"url":"https://github.com/aanujkhurana/fullstack-findmylease","last_synced_at":"2026-04-18T08:01:56.610Z","repository":{"id":280152369,"uuid":"940988466","full_name":"aanujkhurana/fullstack-FindMyLease","owner":"aanujkhurana","description":"An enterprise-grade rental property management platform built with Next.js and AWS, designed for seamless property listing, tenant management, and secure transactions.","archived":false,"fork":false,"pushed_at":"2025-05-24T01:45:00.000Z","size":20038,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-24T02:35:09.724Z","etag":null,"topics":["amplify","aws","cognito","ec2","expressjs","gateway-api","nextjs","nodejs","prostgres","react","relational-databases","shadcn","sql"],"latest_commit_sha":null,"homepage":"https://main.dykb851k9y38f.amplifyapp.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aanujkhurana.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-01T07:58:48.000Z","updated_at":"2025-05-24T01:45:03.000Z","dependencies_parsed_at":"2025-04-22T05:37:28.155Z","dependency_job_id":null,"html_url":"https://github.com/aanujkhurana/fullstack-FindMyLease","commit_stats":null,"previous_names":["aanujkhurana/fullstack-findmylease"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/aanujkhurana/fullstack-FindMyLease","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aanujkhurana%2Ffullstack-FindMyLease","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aanujkhurana%2Ffullstack-FindMyLease/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aanujkhurana%2Ffullstack-FindMyLease/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aanujkhurana%2Ffullstack-FindMyLease/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aanujkhurana","download_url":"https://codeload.github.com/aanujkhurana/fullstack-FindMyLease/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aanujkhurana%2Ffullstack-FindMyLease/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31961348,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["amplify","aws","cognito","ec2","expressjs","gateway-api","nextjs","nodejs","prostgres","react","relational-databases","shadcn","sql"],"created_at":"2025-03-07T10:56:35.726Z","updated_at":"2026-04-18T08:01:56.605Z","avatar_url":"https://github.com/aanujkhurana.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eFindMyLease - Rental Management System 🏢\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eAn enterprise-grade rental property management platform\u003c/strong\u003e\u003cbr/\u003e\n  Built with \u003ca href=\"https://nextjs.org/\" target=\"_blank\"\u003e\u003ccode\u003eNext.js\u003c/code\u003e\u003c/a\u003e, \n  \u003ca href=\"https://aws.amazon.com/\" target=\"_blank\"\u003e\u003ccode\u003eAWS\u003c/code\u003e\u003c/a\u003e, and \n  \u003ca href=\"https://www.postgresql.org/\" target=\"_blank\"\u003e\u003ccode\u003ePostgreSQL\u003c/code\u003e\u003c/a\u003e for seamless listings, secure authentication, and tenant/manager management.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/languages/top/aanujkhurana/fullstack-FindMyLease?color=blue\u0026style=flat-square\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Next.js-13+-black?logo=next.js\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/AWS-Deployed-orange?logo=amazonaws\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/PostgreSQL-Database-blue?logo=postgresql\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Prisma-ORM-lightblue?logo=prisma\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/License-MIT-green.svg\" /\u003e\n\u003c/p\u003e\n\n## 🚀 Tech Stack\n\n- **Frontend**: [Next.js 13+](https://nextjs.org/), [Mapbox](https://www.mapbox.com/), [Amazon Cognito](https://aws.amazon.com/cognito/), [Tailwind CSS](https://tailwindcss.com/)\n- **Backend**: [Node.js](https://nodejs.org/), [Express](https://expressjs.com/), [Prisma ORM](https://www.prisma.io/)\n- **Database**: [PostgreSQL (RDS)](https://aws.amazon.com/rds/postgresql/)\n- **Cloud Infrastructure**: [AWS S3](https://aws.amazon.com/s3/), [EC2](https://aws.amazon.com/ec2/), [Amplify](https://aws.amazon.com/amplify/), [API Gateway](https://aws.amazon.com/api-gateway/), [VPC](https://aws.amazon.com/vpc/), [Cognito](https://aws.amazon.com/cognito/)\n- **Dev Tools**: [PM2](https://pm2.keymetrics.io/), [Postman](https://www.postman.com/), [Figma](https://www.figma.com/), [pgAdmin](https://www.pgadmin.org/), [Mermaid](https://mermaid.js.org/)\n- **Extras**: `.npmrc` for [React 19](https://react.dev/) legacy support\n\n## ✨ Features\n\n- 🔐 Secure login with AWS Cognito\n- 🏠 Property listings with location via Mapbox\n- 📷 Image uploads to AWS S3\n- 👥 Role-based access for tenants and managers\n- 📊 Admin dashboard with analytics (planned)\n- 🗂️ Organized backend via Node.js and Prisma\n- ☁️ Fully deployed using AWS services (Amplify, EC2, RDS, S3, API Gateway)\n\n\n## 🔗 Quick Links\n\n- 🌐 [Live Demo](https://main.dykb851k9y38f.amplifyapp.com)\n- 🎨 [UI Design](./docs/ui-preview.jpg)\n- 📊 [Entity Relationship Diagram](./docs/entity-diagram.jpg)\n\n\n## 🏗️ Architecture\n\n```mermaid\ngraph TD\n  A[Client - Next.js + Mapbox] --\u003e|API Requests| B(API Gateway)\n  B --\u003e C[EC2 Backend - Node.js + Prisma]\n  C --\u003e D[RDS - PostgreSQL]\n  C --\u003e E[S3 - Image Storage]\n  C --\u003e F[Cognito - Auth]\n  C --\u003e G[VPC - Network]\n```\n\n## 🔄 User Flow\n\n```mermaid\nsequenceDiagram\n  participant User\n  participant Client\n  participant Backend\n  participant DB\n  participant Cognito\n\n  User-\u003e\u003eClient: Sign up / login\n  Client-\u003e\u003eCognito: Authenticate user\n  Cognito--\u003e\u003eClient: Token\n  Client-\u003e\u003eBackend: Fetch listings\n  Backend-\u003e\u003eDB: Query\n  DB--\u003e\u003eBackend: Return results\n  Backend--\u003e\u003eClient: Send data\n```\n\n## 🧭 Entity Flow Diagram\n\n```mermaid\nflowchart TD\n  Manager --\u003e|hasMany| Applications\n  Manager --\u003e|hasMany| Property\n\n  Property --\u003e|hasOne| Location\n  Property --\u003e|hasMany| Leases\n  Leases --\u003e|hasMany| Payments\n\n  Applications --\u003e|evaluatedBy| Decision{Approved?}\n  Decision --\u003e|YES| LeadsToLease\n\n  LeadsToLease --\u003e|creates| Tenant\n  Location --\u003e|usedBy| Tenant\n  Tenant --\u003e|hasOne| CurrentResidences\n\n  LeadsToLease --\u003e|generates| Payments\n\n```\n#### 📝 Notes:\n\u003e - Applications are created by a Manager and evaluated for approval.\n\u003e  - Upon approval, they lead to a lease, which creates a Tenant and triggers a Payment.\n\u003e - A Property is linked to a single Location but can have multiple Leases.\n\u003e  - A Tenant is associated with a CurrentResidence (likely a view or latest Lease).\n\n\n\n## 📁 Folder Structure\n\n```bash\nfullstack-FindMyLease/\n├── client/         # Next.js frontend (Amplify)\n│   ├── .env        # Frontend env vars\n│   └── .npmrc      # React 19 compatibility\n├── server/         \n│   ├── service/    # Node.js backend source code\n│   ├── prisma/     # DB schema \u0026 seeds\n│   ├── .env        # Server env vars\n│   └── ecosystem.config.js  # PM2 config\n└── docs/           # Diagrams, UI mocks\n```\n\n## 🧪 Local Development Setup\n\n### 1. Clone the Repository\n\n```bash\ngit clone https://github.com/aanujkhurana/fullstack-FindMyLease.git\ncd fullstack-FindMyLease\n```\n\n### 2. Configure Environment Variables\n\n#### `client/.env`\n\n```env\nNEXT_PUBLIC_API_BASE_URL=http://localhost:3001\nNEXT_PUBLIC_AWS_COGNITO_USER_POOL_ID=\nNEXT_PUBLIC_AWS_COGNITO_USER_POOL_CLIENT_ID=\nNEXT_PUBLIC_MAPBOX_ACCESS_TOKEN=\n```\n\n#### `server/.env`\n\n```env\nDATABASE_URL=\"postgresql://postgres:0000@localhost:5432/findmylease?schema=public\"\nS3_BUCKET_NAME=\"findmylease-s3-image\"\nPORT=3002\n```\n\n### 3. Install Dependencies\n\n```bash\ncd client \u0026\u0026 npm install\ncd ../server \u0026\u0026 npm install\n```\n\n### 4. Prisma Setup (server)\n\n```bash\nnpx prisma migrate reset\nnpm run prisma:generate\nnpx prisma migrate dev --name init\nnpm run seed\n```\n\n### 5. Start Backend\n\n```bash\npm2 start ecosystem.config.js\n# or\nnpm run dev\n```\n\n\u003e Server runs on port `3002`.\n\n\n### 6. Start Frontend\n\nIn a new terminal:\n\n```bash\ncd client\nnpm run dev\n```\n\n\u003e App runs at [http://localhost:3001](http://localhost:3001)\n\n\n## 🤝 Contribution Guide\n\nTo contribute:\n\n1. Fork and clone the repository\n2. Create a new branch\n3. Make your changes\n4. Submit a pull request\n\n\n## 📜 License\n\nThis project is licensed under the [MIT License](./LICENSE)\n\n---\n\n\u003e Built with ☁️ cloud power and ❤️.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faanujkhurana%2Ffullstack-findmylease","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faanujkhurana%2Ffullstack-findmylease","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faanujkhurana%2Ffullstack-findmylease/lists"}