Stream App is a video streaming platform built using React (with Vite) for the frontend and Spring Boot for the backend. It allows users to upload, stream, and enjoy videos seamlessly. The application incorporates Tailwind CSS for styling and uses FFmpeg for video processing on the backend.
-
Frontend:
- Developed with React and Vite for fast development and performance.
- Responsive design using Tailwind CSS.
- Interactive video streaming interface.
-
Backend:
- Built with Spring Boot for robust backend support.
- Supports video processing using FFmpeg.
- REST API integration for frontend-backend communication.
- Node.js: Ensure you have Node.js (v16 or later) installed.
- Java: Install Java Development Kit (JDK) 17 or later.
- Maven: Ensure Maven is installed for building the backend.
- FFmpeg: Required for video processing.
FFmpeg is an essential tool for handling video processing tasks. Follow the steps below to install and configure FFmpeg:
- Download the FFmpeg build from the official FFmpeg website.
- Extract the downloaded archive and copy the folder to a location (e.g.,
C:\ffmpeg). - Add FFmpeg to the system PATH:
- Open "Environment Variables" in system settings.
- Edit the
Pathvariable and add the path to thebinfolder of your FFmpeg installation (e.g.,C:\ffmpeg\bin).
- Verify installation:
ffmpeg -version
- Update the package manager:
sudo apt update
- Install ffmpeg
sudo apt install ffmpeg
- Verify Installation
ffmpeg -version
- Navigate to the frontend directory:
cd stream-frontend - Install dependencies:
npm install
- Start the Development server:
npm run dev
- Navigate Backend directory
cd spring-stream-backend - Build project using maven:
mvn clean install
- Run the Backend server
mvn spring-boot:run
- Start the backend server as described above.
- Start the frontend server.
- Access the application by visiting:
- Frontend: http://localhost:5173 (or the port configured in Vite).
- Backend API: http://localhost:8080.
- Ensure FFmpeg is installed and configured correctly. The backend requires FFmpeg for video encoding and resolution adaptation.
- Tailwind CSS setup is pre-configured in the
tailwind.config.jsfile in the frontend directory. - Verify that all dependencies for both the frontend and backend are installed correctly to avoid runtime issues.