Code Monkey home page Code Monkey logo

realestate_fullstack's Introduction

Real Estate Full Stack Application

Architecture Overview

This document describes the architecture and database design logic of the Real Estate Full Stack Application.

Architecture Diagram

High-Level Architecture

The application consists of several components:

  • Frontend: Built with React, it includes public and private layouts.
  • Backend: Implemented using Express.js, it interacts with MongoDB through Prisma ORM.
  • Database: MongoDB is used as the primary database.
  • Authentication and Authorization: Middleware is used for user verification, especially for sensitive operations like deleting posts.

Component Breakdown

Frontend

  • React App: The client-side application is built using React. It manages routes and provides a seamless user experience.
    • Public Layout:
      • Homepage
      • List Page
      • Single Post Page
      • Login Page
      • Register Page
    • Private Layout:
      • Profile Page
      • Update User Page
      • Add Post Page

Backend

  • Express API: The server-side application built with Express.js handles all API requests.

    • Routes: Define endpoints for user authentication, post management, chat operations, etc.
    • Middleware: Includes user verification middleware to ensure secure operations.
  • Prisma ORM: Prisma is used to interact with the MongoDB database, providing a type-safe API for database operations.

Database

  • MongoDB: The primary database for storing user information, posts, chat messages, and other application data.

Database Design

The database design includes several collections:

  • User: Stores user information.
  • Post: Stores posts created by users.
  • PostDetail: Stores additional details for each post.
  • SavedPost: Stores posts saved by users.
  • Chat: Represents chat collections.
  • Message: Stores messages within chats.

realestate_fullstack's People

Contributors

xiuyiqian avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.