Skip to content

Latest commit

Β 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“Ί IPTV4EVER - Premium IPTV Platform

A full-stack IPTV streaming platform built with NestJS (TypeScript) for the backend API and React (TypeScript) for the frontend.

πŸš€ Features

  • Modern Tech Stack: NestJS + React + TypeScript
  • RESTful API: Built with NestJS framework
  • Responsive UI: Beautiful gradient design with category filtering
  • Real-time Channel Management: Browse channels by category
  • API Health Monitoring: Real-time API status display
  • CORS Configured: Seamless frontend-backend communication

πŸ“‹ Project Structure

iptv4ever/
β”œβ”€β”€ api/                 # NestJS Backend API
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ main.ts
β”‚   β”‚   β”œβ”€β”€ app.module.ts
β”‚   β”‚   β”œβ”€β”€ app.controller.ts
β”‚   β”‚   β”œβ”€β”€ app.service.ts
β”‚   β”‚   └── iptv/        # IPTV Module
β”‚   β”‚       β”œβ”€β”€ iptv.module.ts
β”‚   β”‚       β”œβ”€β”€ iptv.controller.ts
β”‚   β”‚       └── iptv.service.ts
β”‚   β”œβ”€β”€ .env
β”‚   └── package.json
β”‚
β”œβ”€β”€ client/              # React Frontend
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ App.tsx
β”‚   β”‚   β”œβ”€β”€ App.css
β”‚   β”‚   └── main.tsx
β”‚   β”œβ”€β”€ .env
β”‚   └── package.json
β”‚
└── package.json         # Root package with concurrent scripts

πŸ› οΈ Technology Stack

Backend (API)

  • NestJS - Progressive Node.js framework
  • TypeScript - Type-safe development
  • Express - HTTP server
  • RxJS - Reactive programming

Frontend (Client)

  • React 18 - UI library
  • TypeScript - Type-safe development
  • Vite - Fast build tool
  • Axios - HTTP client

βš™οΈ Configuration

API Configuration

Port: 5000
Environment: Development
CORS: Enabled for http://localhost:5173 and iptv4ever.com

Edit api/.env:

PORT=5000
NODE_ENV=development
FRONTEND_URL=http://localhost:5173
DOMAIN=iptv4ever.com

Client Configuration

Port: 3000 (Vite default: 5173)
API URL: http://localhost:5000

Edit client/.env:

VITE_API_URL=http://localhost:5000
VITE_APP_NAME=IPTV4EVER
VITE_DOMAIN=iptv4ever.com

πŸ“¦ Installation

Install all dependencies at once:

npm run install:all

Or install separately:

# Root dependencies
npm install

# API dependencies
cd api && npm install

# Client dependencies
cd client && npm install

πŸš€ Running the Application

Run Both API and Client Together (Recommended):

npm run dev

This will start:

Run Separately:

API Only:

npm run api:dev
# or
cd api && npm run start:dev

Client Only:

npm run client:dev
# or
cd client && npm run dev

πŸ“‘ API Endpoints

Base URL: http://localhost:5000

Health Check

GET /health

Response:

{
  "status": "ok",
  "timestamp": "2026-01-31T...",
  "service": "IPTV4EVER API"
}

Get All Channels

GET /iptv/channels

Get Single Channel

GET /iptv/channels/:id

Get Categories

GET /iptv/categories

Create Playlist

POST /iptv/playlist

🎨 Frontend Features

  • Category Filtering: Filter channels by News, Sports, Movies, etc.
  • Responsive Grid: Adapts to all screen sizes
  • Real-time API Status: Shows connection status to backend
  • Beautiful UI: Modern gradient design with smooth animations
  • Channel Cards: Display channel logos, names, and categories

🌐 Production Deployment

Build for Production:

npm run build

This will:

  1. Build the NestJS API to api/dist/
  2. Build the React app to client/dist/

Run Production Build:

# Start API
cd api && npm run start:prod

# Serve Client (use a static file server)
cd client && npx serve -s dist

πŸ”§ Development

API Development:

cd api
npm run start:dev    # Watch mode
npm run start:debug  # Debug mode

Client Development:

cd client
npm run dev          # Development server

πŸ“ Environment Variables

API (.env)

  • PORT: API server port
  • NODE_ENV: Environment (development/production)
  • FRONTEND_URL: Frontend URL for CORS
  • DOMAIN: Production domain

Client (.env)

  • VITE_API_URL: Backend API URL
  • VITE_APP_NAME: Application name
  • VITE_DOMAIN: Production domain

🀝 Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

πŸ“„ License

ISC License

πŸ‘¨β€πŸ’» Author

IPTV4EVER Team


🌐 Domain: iptv4ever.com
πŸ“Ί Built with: NestJS + React + TypeScript
πŸš€ Ready for: Production deployment

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages