Skip to content

FancyKat/Real-Estate-App

Repository files navigation

Real Estate App

Description

A full stack real estate application that built with a Django backend and a React frontend using docker to connecting them together. This app currently is not live and is for the developer to learn how to stand a full stack app up and test it on a local server. Below is an example environmental variables so that way this project can be replicated on your own local server.

Project Replication

To replicate this project sample images and a sample .env has been provided. In the documentation you can find examples of what variables to start this project locally.

Clone the Repo

  • git clone https://github.com/FancyKat/Real-Estate-App
  • cd Real-Estate-App

Creating a virtual environment

  • python3.10 -m venv venv
  • source venv/bin/activate

Install Dependacy

  • pip3 install -r requirements.txt

Create Missing Folders

  • mkdir logs mediafiles staticfiles htmlcov

Create the .envs

root directory

  • touch .env
  • Store you unique values

client directory

  • touch .env
  • Store values in the documentation pertain to the client

Building with Docker

  • make build The site is now locally hosted on localhost:8080

File Directory

.
├── apps
│   ├── common
│   │   └── migrations
│   ├── enquiries
│   │   └── migrations
│   ├── profiles
│   │   └── migrations
│   ├── properties
│   │   └── migrations
│   ├── ratings
│   │   └── migrations
│   └── users
│       └── migrations
├── client
│   ├── docker
│   │   └── local
│   ├── public
│   └── src
│       ├── app
│       ├── components
│       ├── features
│       │   ├── auth
│       │   └── properties
│       ├── images
│       └── pages
├── docker
│   └── local
│       ├── django
│       │   └── celery
│       │       ├── flower
│       │       └── worker
│       └── nginx
├── hmtlcov
├── logs
├── mediafiles
├── real_estate
│   └── settings
├── sample_images
├── staticfiles
└── tests
    ├── profiles
    └── users

Environment Variables

Global .env

SECRET_KEY="Your Key"
DEBUG=True
ALLOWED_HOSTS="localhost 127.0.0.1 [::1] api"
POSTGRES_ENGINE=django.dbbackends.postgresql
POSTGRES_USER=admin
POSTGRES_PASSWORD=admin1234
POSTGRES_DB=estate
PG_HOST=postgres-db
PG_PORT=5432
SIGNING_KEY="Your Key"
EMAIL_HOST="Your Email Service"
EMAIL_PORT="Email Service Port"
EMAIL_HOST_USER="Your User"
EMAIL_HOST_PASSWORD="Your Password"
DOMAIN=localhost:8080
CELERY_BROKER=redis://redis:6379/0
CELERY_BACKEND=redis://redis:6379/0

Client .env

WDS_SOCKET_PORT=0

Technology Stack

Backend

Python Django Postgresql

Front End

JavaScript HTML CSS
React Redux Bootstrap

Third Party Software

Nginx Celery Redis Docker

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •