Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 941 Bytes

README.md

File metadata and controls

37 lines (24 loc) · 941 Bytes

Homeflix

This package allows you to stream videos from your folder on your computer to your home network to a browser. It supports only .mp4 videos.

Required
  • docker
  • node.js 18+
  • ffmpeg (for screenshot)
  • npm i
  • Create a file with name .env within repo with the next Environment variables:

POSTGRES_USER=postgres

POSTGRES_PASSWORD=password_for_db

POSTGRES_PORT=5434

POSTGRES_HOST=localhost

POSTGRES_DATABASE=postgres

FILE_ROOT_DIR=/path/to/videos/folder

SCREENSHOT_ROOT_DIR=/path/to/screenshot/foldervariable

How to run

  • npm run start
  • To sync db with files within FILE_ROOT_DIR: npm run populate
  • To stop and remove containers: npm run stop

How to run in Dev mode

  • Start database in container npm run start:db
  • To sync db with files within FILE_ROOT_DIR: npm run populate
  • Build web app ui part in watch mode npm run ff
  • Start web app server in watch mode npm run bb