Skip to content

T4910/purpletalk-interface-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Realyze - AI-Powered Real Estate Discovery

Welcome to the Realyze project! This project is an AI-powered real estate discovery platform with a React frontend and a Django REST framework backend.

This README provides instructions on how to set up and run the project locally.

Table of Contents

Prerequisites

Before you begin, ensure you have the following installed:

Frontend Setup

  1. Navigate to the project root directory in your terminal.

  2. Install frontend dependencies using pnpm:

     pnpm install
  3. Configure frontend environment variables (if any). You might need a .env file in the frontend root directory as well, depending on your frontend configuration.

Backend Setup

  1. Navigate into the backend directory:

    cd backend
  2. Create and activate a Python virtual environment:

    python -m venv venv
    source venv/bin/activate  # On macOS/Linux
    # venv\Scripts\activate    # On Windows
  3. Install backend dependencies:

    pip install -r requirements.txt
  4. Create a .env file in the backend root directory (where manage.py is located).

    SECRET_KEY='your_super_secret_key_here'
    DATABASE_NAME='your_realyze_db_name'
    DATABASE_USER='your_db_user'
    DATABASE_PASSWORD='your_db_password'
    DATABASE_HOST='localhost'
    DATABASE_PORT='5432'
    EMAIL_HOST_USER='[email protected]'
    EMAIL_HOST_PASSWORD='your_gmail_app_password' # Use an App Password if you have 2FA on your Gmail account
    FRONTEND_URL='http://localhost:5173' # Or your frontend's actual URL

    Replace the placeholder values with your actual database credentials, Gmail account details, and frontend URL.

    SECURITY NOTE: Add .env to your .gitignore file to prevent committing sensitive information.

  5. Configure PostgreSQL Database:

    • Ensure your PostgreSQL server is running.
    • Create a database with the name you specified in the .env file (e.g., your_realyze_db_name).
    • Ensure the database user you specified has privileges to connect to and manage this database.
  6. Run Database Migrations: With your virtual environment activated in the backend directory, apply the database schema changes:

    python manage.py makemigrations
    python manage.py migrate
  7. Create a Superuser (Optional but Recommended): You can create an administrator user to access the Django admin panel:

    python manage.py createsuperuser

    Follow the prompts to set up the superuser.

Running the Project

  1. Start the Django backend server: Navigate to the backend directory, activate your virtual environment, and run:

    python manage.py runserver

    The backend server will typically run at http://127.0.0.1:8000/.

  2. Start the React frontend development server: Navigate back to the project root directory and run:

    pnpm dev

    The frontend server will typically run at http://localhost:5173/.

  3. Access the application: Open your web browser and go to the frontend URL (defaulting to http://localhost:5173/).

Project Structure

realyze/
├── backend/               # Django Backend
│   ├── realyze_backend/   # Django Project Settings
│   │   ├── __init__.py
│   │   ├── settings.py
│   │   ├── urls.py
│   │   └── wsgi.py
│   ├── authentication/    # Django Authentication App
│   │   ├── migrations/
│   │   ├── templates/
│   │   │   └── authentication/
│   │   │       └── password_reset_email.txt
│   │   ├── __init__.py
│   │   ├── admin.py
│   │   ├── apps.py
│   │   ├── models.py
│   │   ├── serializers.py
│   │   ├── tests.py
│   │   ├── urls.py
│   │   └── views.py
│   ├── manage.py
│   └── requirements.txt
├── client/
│   ├── public/            # Frontend Public Assets
│   ├── src/               # React Frontend Source
│   │   ├── assets/
│   │   ├── components/
│   │   │   └── ui/        # Shadcn UI components
│   │   ├── hooks/
│   │   ├── lib/
│   │   ├── pages/
│   │   ├── services/
│   │   ├── store/
│   │   ├── App.css
│   │   ├── App.tsx
│   │   ├── index.css
│   │   ├── main.tsx
│   │   └── vite-env.d.ts
│   ├── .gitignore
│   ├── index.html
│   ├── package.json
│   ├── pnpm-lock.yaml
│   ├── postcss.config.js
│   ├── README.md 
│   ├── tailwind.config.ts
│   ├── tsconfig.app.json
│   ├── tsconfig.json
│   ├── tsconfig.node.json
│   └── vite.config.ts
├── .gitignore
└── README.md

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •