A video sharing and livestreaming platform: upload, share and watch videos, stream live, and interact through likes, comments and subscriptions. Built with React on the front end and Spring Boot + MongoDB on the back end.
Captured from the current UI using sample data. WatchBox follows your system theme and has a light/dark toggle in the navbar.
| Light | Dark |
|---|---|
![]() |
![]() |
![]() |
![]() |
| Sign in | Sign up (dark) | Upload |
|---|---|---|
![]() |
![]() |
![]() |
On mobile
| Home (dark) | Watch page (light) |
|---|---|
![]() |
![]() |
- User Authentication: Users can create an account, log in, and manage their profile information.
- Video Upload: Users can upload videos, and provide details such as tags, descriptions, thumbnail...
- Video Management: Users can manage their uploaded videos, including editing titles, descriptions, and tags.
- Livestreaming: Users can stream live video content, allowing real-time interaction with viewers through chat or comments.
- Video Discovery: Users can explore and discover videos based on categories, tags, popularity, and recommendations.
- Social Interactions: Users can like, comment on, and share videos, fostering a vibrant community.
- Subscription System: Users can subscribe to channels or specific content creators to receive notifications and updates.
- User Notifications: Users receive notifications for new uploads, comments, likes, and subscriptions.
- Search Functionality: Users can search for videos, channels, and specific content.
- User Privacy Settings: Users can control the privacy of their videos and manage their account settings.
- User Analytics: Content creators can access analytics to track video performance, views, and engagement.
- Light and dark themes with a navbar toggle. It follows the system setting by default, remembers your choice and applies it before first paint (no flash).
- Responsive layout: a sidebar on desktop that becomes a scrollable pill bar on phones, and a search row that opens from the navbar.
- Discovery: tag filter chips on the home page, search suggestions, and an "Up next" list on the watch page.
- Polished details: skeleton loading states, initials avatars when a user has no photo, thumbnails that fade in, a LIVE badge on streams, drag-and-drop video upload, and styled confirm/share dialogs.
- Accessibility: visible keyboard focus, labelled controls, a skip-to-content link, dialogs that close on Escape, and reduced-motion support.
- Shortcut: press
/anywhere to jump to search.
- Node.js and npm
- JDK and Maven (the backend ships with the Maven wrapper)
- A running MongoDB instance (the backend connects to
localhost:27017, databasevideo-sharing-app) - A Firebase project with Storage enabled (used for video, thumbnail and profile-picture uploads)
git clone https://github.com/guizo792/watchBox
cd watchBox
The backend needs a JWT signing key (jwt.secret): a Base64 string of at least 32 bytes. Generate your own with openssl rand -base64 48, then provide it in one of two ways:
- set the
JWT_SECRETenvironment variable, or - copy
backend/src/main/resources/.properties.exampletobackend/src/main/resources/.propertiesand put your secret there. That file is git-ignored; never commit it.
Then build and run the backend:
cd backend
mvn clean install
mvn spring-boot:run
Create frontend/.env with your Firebase settings:
REACT_APP_API_KEY=
REACT_APP_AUTH_DOMAIN=
REACT_APP_PROJECT_ID=
REACT_APP_STORAGE_BUCKET=
REACT_APP_MESSAGINE_SENDER_ID=
REACT_APP_APP_ID=
REACT_APP_LIVE_STREAMING_KEY=
(MESSAGINE is spelled that way in the code.) Then:
cd frontend
npm install
npm start
Open http://localhost:3000. The frontend expects the API at http://localhost:8080.
backend/ Spring Boot API (controllers, services, Mongo repositories, JWT security, WebSocket notifications)
frontend/ React app
src/Components/ UI building blocks (navbar, video card, comments, auth, upload, profile ...)
src/pages/ Route-level pages (home, watch, search, liked videos, subscriptions ...)
src/store/ Redux state
src/services/ API clients
docs/screenshots/ Images used in this README
The theme lives in CSS variables in frontend/src/index.css (light and dark values) and is exposed to Tailwind in frontend/tailwind.config.js as brand, ink, muted, line and surface colors, so utilities like bg-surface and text-ink follow the active theme automatically. Shared primitives (.panel, .field, .btn-primary, .btn-secondary, .video-grid, .skeleton) are defined there too.
Screens not yet re-captured with the new design
These screenshots show the interface before the redesign. The functionality is the same; the look has changed.
Home page (anonymous user)
Login page
SignUp page
Search bar
Search results
Upload page 1
Upload page 2
Live streaming (streamer)
Live streaming (viewer)
User profile
Video Preview
Video Preview 2
Liked videos
Subscription infos






















