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.
guest
hidupjokowi-
Clone and start
git clone <repository-url> cd tani-pintar-backend docker-compose -f docker-compose.local.yml up --build
-
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
-
Access the application
- API: http://localhost:8000
- API Docs: http://localhost:8000/api/docs/
- Admin: http://localhost:8000/admin/
- Postman Collection: https://www.postman.com/dark-shuttle-853516/tani-pintar/
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