VideoLibrary is a full-stack application that provides an interactive training module for employees to watch video content in sequence.
- Sequential video playback
- Resume from last stop
- Back navigation to previously watched videos
- Progress tracking
- Responsive design
- Frontend: React
- Backend: Node.js, Express
- Database: MongoDB
- Video Player: Video.js
- Node.js
- MongoDB
-
Clone the repository:
git clone https://github.com/rohanvron/VideoLibrary.git
-
Install dependencies:
cd VideoLibrary npm install cd frontend npm install
-
Install MongoDB and start the server.
-
Set up environment variables: Create a
.env
file in the root directory and add:MONGODB_URI=your_mongodb_connection_string PORT=5000
-
Seed the database:
cd backend npm run seed
-
frontend/
: React frontend application -
backend/
: Express backend server -
-controllers/
: Request handlers -
-models/
: Database models -
-routes/
: API routes -
-server.js
: Main server file
- GET
/api/videos
: Retrieve all videos - POST
/api/videos/progress
: Update video progress