+ more content in about section and packaging now
This commit is contained in:
parent
7f9ff9bb65
commit
3676b13411
@ -3,20 +3,21 @@ stages:
|
||||
- deploy
|
||||
|
||||
# Builds out the intended zip package
|
||||
#package:
|
||||
# stage: build
|
||||
# script:
|
||||
# - rustup default nightly
|
||||
# - mkdir -p build
|
||||
# - cp api/templates/ api/static/ build -r
|
||||
# - cargo build --release
|
||||
# - cp target/release/api build/server
|
||||
# - cp ./scripts/generate-thumbnail.sh build/
|
||||
# - cp readme.md build/
|
||||
# - sh ./scripts/default-rocket-toml.sh
|
||||
# artifacts:
|
||||
# paths:
|
||||
# - build/
|
||||
package:
|
||||
stage: build
|
||||
script:
|
||||
- rustup default nightly-2021-09-18
|
||||
- mkdir -p build
|
||||
- cp api/templates/ api/static/ build -r
|
||||
- cargo --version
|
||||
- cargo build --release
|
||||
- cp target/release/api build/server
|
||||
- cp ./scripts/generate-thumbnail.sh build/
|
||||
- cp readme.md build/
|
||||
- sh ./scripts/default-rocket-toml.sh
|
||||
artifacts:
|
||||
paths:
|
||||
- build/
|
||||
|
||||
|
||||
|
||||
|
@ -12,8 +12,34 @@ You can post whatever you want because its your content, your site, your rules.
|
||||
|
||||
# How does it work?
|
||||
|
||||
Clips are organized into categories(folders)....
|
||||
Well clips that you upload to your server are organized into categories and
|
||||
served from there. Categories can have thumbnails too so they look distinct
|
||||
but that's up to you to setup.
|
||||
|
||||
That's it.
|
||||
# Can I make a script to get videos?
|
||||
|
||||
Categories can have thumbnails too so they look distinct but that's up to you.
|
||||
Sure the public API is actually really simple:
|
||||
|
||||
These are basically all the routes you'll need
|
||||
|
||||
* GET `/api/categories/list`
|
||||
|
||||
Lists out the categories available
|
||||
|
||||
* GET `/api/category/<category-name>`
|
||||
|
||||
Lists out the videos for that given category
|
||||
|
||||
* GET `/video/<category>/<file>`
|
||||
|
||||
Fetches the video file itself named by `file`
|
||||
|
||||
|
||||
# How easy is it to upload videos?
|
||||
|
||||
Right now you just need to drop a video file into a sub-folder of your server's
|
||||
videos directory. So if you had `/media/videos` then you would put a video into
|
||||
a folder like `/media/videos/cool-clips/` or whatever else it's named.
|
||||
|
||||
Currently I'm working on making a simple clip-uploading tool that would also take
|
||||
care of generating the appropriate thumbnails for you.
|
||||
|
Loading…
Reference in New Issue
Block a user