This is a Video Cropping Tool built with React that allows users to crop videos by selecting start and end times. It includes a timeline slider for selecting the crop range, a video player to preview the video, and a button to toggle between light and dark modes.
- Crop Controls: Displays start time, end time, and duration of the cropped video.
- Timeline: Interactive slider to select start and end time for cropping.
- Dark Mode Toggle: Toggle between light and dark modes.
- React
- Tailwind CSS
- React Player (for video playback)
- rc-slider (for timeline slider)
[Link to the demo video cropping tool] (If you have a live demo link, otherwise, leave this empty)
Make sure you have the following installed:
- Node.js: You can download it from https://nodejs.org/
- npm or yarn: npm comes with Node.js, but you can also install yarn from https://yarnpkg.com/
Follow the steps below to set up the project locally:
-
Clone the repository to your local machine:
git clone https://github.com/your-username/video-cropping-tool.git cd video-cropping-tool
This is a backend application built with Express.js and Bull for managing task queues. It provides an API endpoint for enqueuing tasks and processes them by decrementing a duration every minute. It also integrates with Redis for managing the queue.
- Task Queueing: Queue tasks with a specific total duration and user data.
- Task Processing: Processes tasks by decrementing the remaining time by 1 minute at intervals.
- Redis: Uses Redis as the backend to manage the queue.
- Express.js: Web framework for Node.js.
- Bull: A Redis-based queue system for handling background tasks.
- Redis: In-memory database for managing queues.
- CORS: Middleware for handling cross-origin requests.
- dotenv: Loads environment variables from
.env
files.
Make sure you have the following installed:
- Node.js: Download from https://nodejs.org/
- Redis: You need to have Redis installed and running on your machine. You can download it from https://redis.io/download.
-
Clone the repository to your local machine:
git clone https://github.com/your-username/task-queue-api.git cd task-queue-api