MCPcopy Create free account
hub / github.com/amiraadev/rent-application-nextjs

github.com/amiraadev/rent-application-nextjs @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
116 symbols 305 edges 71 files 0 documented · 0% updated 2y ago★ 33

Browse by type

Functions 71 Types & classes 45
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Full Stack Rent Application with Next.js 14 App Router: React, Tailwind, Prisma, MongoDB, NextAuth 2023

Screenshot

Demo

Check out the live demo here : https://renting-app-nextjs.vercel.app/.

Overview

This repository contains the source code for a Full Stack Rent Application built with Next.js 14, featuring the App Router, React, Tailwind, Prisma, MongoDB, and NextAuth.

Features

  • Tailwind design
  • Tailwind animations and effects
  • Full responsiveness
  • Credential authentication
  • Google authentication
  • Github authentication
  • Image upload using Cloudinary CDN
  • Client form validation and handling using react-hook-form
  • Server error handling using react-toast
  • Calendars with react-date-range
  • Page loading state
  • Page empty state
  • Booking / Reservation system
  • Guest reservation cancellation
  • Owner reservation cancellation
  • Creation and deletion of properties
  • Pricing calculation
  • Advanced search algorithm by category, date range, map location, number of guests, rooms, and bathrooms
  • For example, filtering properties with reservations in the desired date range
  • Favorites system
  • Shareable URL filters
  • Share a URL with predefined filters for category, location, and date range
  • Demonstrates how to write POST and DELETE routes in route handlers (app/api)
  • Fetching data in server react components by directly accessing the database (WITHOUT API!)
  • Handling files like error.tsx and loading.tsx, new Next 14 templating files for unified loading and error handling
  • Managing relations between server and child components

Setup .env file

Create a .env file in the root directory and add the following configuration:

DATABASE_URL=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GITHUB_ID=
GITHUB_SECRET=
NEXTAUTH_SECRET=

Setup Prisma

npx prisma db push

Start the app

npm run dev

Extension points exported contracts — how you extend this code

browse all types & interfaces →

Core symbols most depended-on inside this repo

browse all functions →

Shape

Function 71
Interface 43
Enum 2

Languages

TypeScript100%

Modules by API surface

app/components/modals/RentModal.tsx6 symbols
app/hooks/useCountries.ts3 symbols
app/api/favorites/[listingId]/route.ts3 symbols
app/trips/TripsClient.tsx2 symbols
app/reservations/ReservationsClient.tsx2 symbols
app/properties/PropertiesClient.tsx2 symbols
app/page.tsx2 symbols
app/listings/[listingId]/page.tsx2 symbols
app/listings/[listingId]/ListingClient.tsx2 symbols
app/hooks/useFavorite.ts2 symbols
app/favorites/FavoriteClient.tsx2 symbols
app/error.tsx2 symbols

For agents

$ claude mcp add rent-application-nextjs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page