One Time Plex (OTP) allows a Plex user to access one movie or episode of a tv series from your Plex Media Server.
If you would like, you can download the appropriate binary for your system here.
If not, here's how you can build this repo from scratch:
- clone this repo
- make sure Go is installed
- then install Go dep
cd server/
- run
dep ensure
- run
go build -o one-time-plex
The following instructions are for mainly for building a binary when changes to the front end occur
Here is how to bake the front end files into the server, so we get a single binary:
Make sure these are installed:
- Go
- Go dep (dependency tool)
- npm or yarn
- go-bindata
- go-bindata-assetfs
Front end
yarn run build
ornpm run build
to create a production build of the front end- copy
client/build
toserver/build
Back end
cd server/
- run
go-bindata-assetfs ./build/...
this generatesbindata.go
go build -o one-time-plex