/cctv-viewer

The project is a CCTV viewer application that allows an admin to upload, share, and manage video files while enabling users to view and download the videos shared with them, with role-based access control and JWT authentication.

Primary LanguageJavaScript

CCTV Viewer

A simple video sharing application where an admin can upload videos, share them with users, and manage the files. Users can view and download the videos shared with them.

Features

  • Admin Panel:

    • Upload video files (.mp4, .avi).
    • Delete uploaded videos.
    • Share videos with users by entering their User IDs.
  • User Panel:

    • Enter User ID to view videos shared with them.
    • Play and download shared videos.

Tech Stack

  • Backend: Node.js, Express.js
  • Frontend: HTML, CSS, JavaScript
  • Database: MongoDB
  • File Storage: Local filesystem

Setup Instructions

Prerequisites

  • Node.js and npm installed.
  • MongoDB installed and running.

Backend Setup

  1. Navigate to the backend directory:

    cd backend