Skip to content

This is the backend part of BizBuch application. Being open source it offers a decentralized server that can be deployed on any cloud infrastructure and used within the application for a dedicated user base.

License

Notifications You must be signed in to change notification settings

BizBuch/Core-Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

164 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

BizBuch Backend

A Django-based social networking platform backend with real-time chat, posts, profiles, and activity feeds.

πŸš€ Features

  • User Authentication - Registration, login, password reset with OTP verification
  • Profiles - User profiles with work experience, education, skills, and locations
  • Posts - Create, like, and comment on posts
  • Chat - Real-time messaging with WebSocket support
  • Activity Feed - Notifications for likes, comments, follows, and connections
  • Connections - Follow users and manage connections
  • Onboarding - User onboarding flow with topic selection

πŸ› οΈ Tech Stack

  • Framework: Django 5.2 + Django REST Framework
  • Database: PostgreSQL 15
  • Cache/Message Broker: Redis 7
  • ASGI Server: Daphne (WebSocket support)
  • Object Storage: MinIO (S3-compatible)
  • Documentation: drf-spectacular (Swagger/OpenAPI)
  • Containerization: Docker & Docker Compose

πŸ“‹ Prerequisites

  • Docker & Docker Compose
  • Python 3.10+ (for local development)

πŸƒ Quick Start

Using Docker (Recommended)

# Clone the repository
git clone <repository-url>
cd BizBuch-Backend

# Start all services
docker compose up -d

# View logs
docker compose logs -f web

The API will be available at:

Local Development

# Create virtual environment
python -m venv venv
source venv/bin/activate  # Linux/Mac
# or
venv\Scripts\activate  # Windows

# Install dependencies
pip install -r requirements.txt

# Set up environment variables
cp .env.example .env  # Edit with your settings

# Run migrations
python manage.py migrate

# Start development server
python manage.py runserver

πŸ”§ Environment Variables

Variable Description Default
DEBUG Debug mode True
DB_HOST PostgreSQL host db
DB_PORT PostgreSQL port 5432
POSTGRES_DB Database name bizbuch
POSTGRES_USER Database user postgres
POSTGRES_PASSWORD Database password postgres
REDIS_HOST Redis host redis
AWS_ACCESS_KEY_ID MinIO/S3 access key -
AWS_SECRET_ACCESS_KEY MinIO/S3 secret key -
AWS_S3_ENDPOINT_URL S3 endpoint URL -
AWS_S3_BUCKET S3 bucket name bizbuch
OTP_VERIFICATION_ENABLED Enable OTP verification False

πŸ“ Project Structure

BizBuch-Backend/
β”œβ”€β”€ accounts/          # User authentication & management
β”œβ”€β”€ activity/          # Notifications & activity feed
β”œβ”€β”€ chat/              # Real-time messaging
β”œβ”€β”€ core/              # Core middleware & utilities
β”œβ”€β”€ intelligence/      # Recommendation services
β”œβ”€β”€ onboarding/        # User onboarding flow
β”œβ”€β”€ posts/             # Posts, likes, comments
β”œβ”€β”€ profiles/          # User profiles & connections
β”œβ”€β”€ uploads/           # File upload services (S3)
β”œβ”€β”€ mysite/            # Django project settings
β”œβ”€β”€ docker-compose.yml
β”œβ”€β”€ Dockerfile
β”œβ”€β”€ requirements.txt
└── manage.py

πŸ“š API Documentation

Once the server is running, visit:

🐳 Docker Commands

# Start services
docker compose up -d

# Stop services
docker compose down

# Rebuild after dependency changes
docker compose up --build web

# Restart web service (for code changes)
docker compose restart web

# Run migrations
docker compose exec web python manage.py migrate

# Create superuser
docker compose exec web python manage.py createsuperuser

# Access Django shell
docker compose exec web python manage.py shell

# View logs
docker compose logs -f web

πŸ§ͺ Running Tests

# Using Docker
docker compose exec web python manage.py test

# Local
python manage.py test

πŸ“ License

This project is proprietary software. All rights reserved.

πŸ‘₯ Contributors

  • BizBuch Team

About

This is the backend part of BizBuch application. Being open source it offers a decentralized server that can be deployed on any cloud infrastructure and used within the application for a dedicated user base.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors