A desktop application to manage your local video streaming.
- Browse to find the video you want to play.
- The video you play will be added to recents list.
- Mark the video as watched in your recents list.
- Play a random video from a folder.
- Install Node.js.
- Run
npm install
in the root directory to install dependencies.
Make a .env file in root directory. An example configuration:
MODE=debug
DEBUG_URL=http://localhost:3000/
DEBUG_DATA_PATH=path\to\data\directory
MODE can be-
- debug: Render contents from URL location specified by DEBUG_URL. This allows fast debugging otherwise we would have to build the React app everytime. One can separately serve a react app on the localhost which supports auto reload whenever files change.
- production: Render contents from react build output.
DEBUG_DATA_PATH represents the directory where app data will be saved while in debugging mode so that you can use the application and develop simultaneously while keeping the data separated.
- Configure .env for debug as described in the previous section.
- Use command
npm run react-start
to run react dev server and host the react app. - Use command
npm run electron-start
to launch the app which loads the URL on which the react app is hosted.
- Use command
npm run electron-pack
to build the react app and package the electron app. - The build output is stored in dist directory.
- Install the app using the installer.
- Enjoy local streaming :)
- For fun.
- Recents list is convenient, it allows me to track what I have watched.
- I can easily click the next button on a recent to play the next video in the same folder.
- Learning how to implement a desktop app using Electron and React while following best practices as much as possible.