Skip to content

UNKLAB-ID/tani-pintar-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

313 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tani Pintar Backend

Tani Pintar is an agricultural platform connecting farmers, distributors, consumers, suppliers, agents, and vendors. Features include social media, AI plant disease detection, e-commerce, and location-based services.

Dev Server Read Only Account

guest
hidupjokowi

🚀 Quick Start with Docker

  1. Clone and start

    git clone <repository-url>
    cd tani-pintar-backend
    docker-compose -f docker-compose.local.yml up --build
  2. Setup database

    docker-compose -f docker-compose.local.yml run django python manage.py migrate
    docker-compose -f docker-compose.local.yml run django python manage.py createsuperuser
    docker-compose -f docker-compose.local.yml run django python manage.py loaddata location/fixtures/initial_data.json
  3. Access the application

📚 API Documentation

🔧 Development Commands

All commands should be run with Docker:

# Start services
docker compose -f docker-compose.local.yml up

# Run tests
docker compose -f docker-compose.local.yml run --rm django pytest

# Run migrations
docker compose -f docker-compose.local.yml run --rm django python manage.py migrate