🎬 BoredTube is a video sharing service similar to YouTube, with built-in Twitter-like features. This project provides a complete video management system. It includes user management, video upload and editing, tweet management, subscription management, playlist management, and more. Built with Node.js, Express.js, and MongoDB, BoredTube is strong and can grow easily. It connects with Cloudinary for storing media and uses JWT for secure login. With detailed API documentation and a focus on user experience, BoredTube aims to offer a smooth and efficient video management system.
Content | Link |
---|---|
API Documentation | click here |
Data Model | click here |
- Registration, login, logout, change password
- Profile management (avatar, cover image, other details)
- Watch history tracking and Clearing Watch History
- Liked videos tracking
- Video upload
- Canceling Video upload with all resources cleaned up on backend.
- Visibility control (publish/un-publish)
- Video editing and deletion
- Video Search and pagination
- Tweet creation and publishing
- Viewing user tweets
- Updating and deleting tweets
- Liking-disliking tweets
- Subscribing to channels
- Viewing Channel subscriber
- Viewing Subscribed channel lists
- Creating, updating, and deleting playlists
- Adding videos to playlists
- Removing videos from playlists and undoing them
- Viewing user playlists
- Liking and Un-liking videos, comments, and tweets
- Viewing liked videos
- Adding, updating, and deleting comments on videos
- Viewing channel statistics (views, subscribers, videos, likes)
- Accessing uploaded videos and Controls
- Viewing Video statistics (PublishStatus, VideoName, DateUploaded, Views, TotalComments, LikeRatings)
- Endpoint to verify the server's health
- Node.js
- Express.js
- MongoDB
- Mongoose
- JWT
- Cloudinary
- Jest & Supertest
- Docker
- Github actions
- Node.js (v20.x)
- Docker (optional, for containerized deployment)
- MongoDB (local or cloud instance)
- Cloudinary account (for media storage)
Create a .env
file in the root directory of the project and populate it with the variables in .env.sample
file.
- Clone the repository:
git clone https://github.com/sujal-goswami/BoredTube.git
cd boredtube
- Install dependencies:
npm install
To run the application in development mode:
npm run dev
To run the application in production mode:
npm run start
To run the tests:
npm run test
To build and run the application using Docker:
- Build the Docker image:
docker build --target development -t boredtube:latest .
- Run the Docker container:
docker run -d --name boredtube -p 8000:8000 \
-e PORT=8000 \
-e MONGODB_URL=your_mongodb_url \
-e CORS_ORIGIN=your_cors_origin \
-e ACCESS_TOKEN_SECRET=your_access_token_secret \
-e ACCESS_TOKEN_EXPIRY=your_access_token_expiry \
-e REFRESH_TOKEN_SECRET=your_refresh_token_secret \
-e REFRESH_TOKEN_EXPIRY=your_refresh_token_expiry \
-e CLOUDINARY_CLOUD_NAME=your_cloudinary_cloud_name \
-e CLOUDINARY_API_KEY=your_cloudinary_api_key \
-e CLOUDINARY_API_SECRET=your_cloudinary_api_secret \
boredtube:latest
This project uses GitHub Actions for CI/CD. The workflows are defined in the .github/workflows
directory.
- Deploy Workflow
- Test Workflow
Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request. Let's make 🎬BoredTube even better together! for more details refer CONTRIBUTING.md .
🎬BoredTube is licensed under the MIT License. Feel free to modify, distribute, and use the code for personal or commercial projects.