Skip to content

xdido2/private_tv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“± Private TV β€” Flutter Mobile App

Welcome to Private TV β€” a cross-platform Flutter application for browsing public and private videos.
The app integrates with a Django REST Framework backend and uses Bloc for state management.


πŸš€ Features

  • πŸ”‘ User authentication & registration (JWT)
  • πŸŽ₯ Browse public and private videos
  • πŸ’¬ View and post comments
  • πŸ‘€ User profile (avatar, username, email)
  • πŸ“± iOS & Android support
  • ⚑ State management via flutter_bloc

πŸ› οΈ Tech Stack


πŸ“‚ Project Structure


lib/
β”œβ”€β”€ api/              # Bloc, repositories, API integration
β”‚    └── auth/        # Authentication & registration
β”‚    └── videos/      # Video features
β”œβ”€β”€ app/              # UI & app logic
β”‚    └── components/  # UI components (Logo, List, Widgets)
β”‚    └── pages/       # Screens (Home, Settings, Auth)
β”‚    └── themes/      # Colors & styles
β”œβ”€β”€ main.dart         # App entry point


βš™οΈ Installation & Run

1. Clone repository

git clone https://github.com/xdido2/private_tv.git
cd private_tv

2. Install dependencies

flutter pub get

3. Run the app

flutter run

4. Build release

  • Android:
flutter build apk --release
  • iOS:
flutter build ios --release

πŸ”Œ Backend Integration

By default, the app connects to the Django REST API ( see Backend README).

API config is located in lib/api/helper.dart:

class AuthHttp {
  static const String baseUrl = "http://127.0.0.1:8000";
}

πŸ“‘ Key API Endpoints

  • POST /users/login/ β€” user login
  • POST /users/register/ β€” user registration
  • GET /users/me/ β€” fetch current user
  • GET /videos/video_list/ β€” fetch videos
  • GET /videos/private/ β€” fetch private videos (only superusers, see backend doc)
  • GET /videos/<uuid:video_id>/comments/ β€” fetch comments for a video
  • POST /videos/<uuid:video_id>/comments/ β€” post a new comment

πŸ“œ License

This project is licensed under the MIT License.

About

πŸ“± Flutter app for Private TV β€” stream videos, manage accounts, and interact with comments using a modern UI powered by Bloc & REST API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors