hask-gallery
所属分类:模式识别(视觉/语音等)
开发工具:Haskell
文件大小:125KB
下载次数:0
上传日期:2020-05-31 00:11:06
上 传 者:
sh-1993
说明: 视频、图片和歌曲的网络图库。它是用haskell编程语言编写的。
(A web gallery for videos, pictures and songs. It was made in haskell programming language.)
文件列表:
CHANGELOG.md (52, 2020-05-31)
LICENSE (1529, 2020-05-31)
Setup.hs (46, 2020-05-31)
TODO (106, 2020-05-31)
app (0, 2020-05-31)
app\Main.hs (440, 2020-05-31)
assets (0, 2020-05-31)
assets\css (0, 2020-05-31)
assets\css\gallery.css (4304, 2020-05-31)
assets\index.html (5634, 2020-05-31)
assets\js (0, 2020-05-31)
assets\js\gallery.js (21404, 2020-05-31)
assets\js\jquery-3.4.1.min.js (88145, 2020-05-31)
assets\pics (0, 2020-05-31)
assets\pics\arrow-alt-circle-left.svg (379, 2020-05-31)
assets\pics\arrow-alt-circle-right.svg (388, 2020-05-31)
assets\pics\loading.webp (53364, 2020-05-31)
assets\pics\pause-circle.svg (432, 2020-05-31)
assets\pics\play-circle.svg (344, 2020-05-31)
assets\pics\random.svg (752, 2020-05-31)
assets\pics\repeat.svg (2051, 2020-05-31)
assets\pics\search.svg (425, 2020-05-31)
assets\pics\window-restore.svg (318, 2020-05-31)
hask-gallery.cabal (4493, 2020-05-31)
package.yaml (2127, 2020-05-31)
src (0, 2020-05-31)
src\Application.hs (2558, 2020-05-31)
src\Management (0, 2020-05-31)
src\Management\Command.hs (3948, 2020-05-31)
src\Models (0, 2020-05-31)
src\Models\Base.hs (1729, 2020-05-31)
src\Models\Music.hs (4047, 2020-05-31)
src\Models\Picture.hs (3747, 2020-05-31)
src\Models\Settings.hs (4053, 2020-05-31)
src\Models\Video.hs (8795, 2020-05-31)
src\Probe (0, 2020-05-31)
... ...
# hask-gallery
## Attention
Status: **The master branch has an usable version**
**This project has a simple gallery for songs, pictures and videos (.mp4). It has few features but it will have more features soon.**
Optionaly you can download ffprobe and put the binary together with hask-gallery-exe.
If you do it will use it to retrive informations about the video files.
You can Also put ffproble location at your PATH environment variable.
You can download ffmpeg and ffprobe here [ffmpeg builds](https://www.ffmpeg.org/download.html)
## About this project
This project was created just to learn haskell. It will be in early future a gallery to listen to music, to watch video clips or look at pictures.
## How this project works
* First it is necessary to configure the path to the galleries (videos, musics and pictures) (instructions bellow)
* Second you call hask-gallery-exe with a parameter `refresh`
* The program will scan the directory you passed at the first step looking for media files and storing their information in a file.
* Finally you can run the hask-gallery without any parameter and open the browser at localhost:8080 url.
## Usage
Configure the gallery
```bash
# set the title of our gallery web page title
hask-gallery-exe gal-title "Title of my gallery"
# set the path to look for video files (such music video clips, movies and etc)
hask-gallery-exe gal-videos-path "/path/to/video-clips"
hask-gallery-exe gal-musics-path "/path/to/musics"
hask-gallery-exe gal-pictures-path "/path/to/pictures"
```
## Tip
Leave a file named cover.jpg inside the music directories.
Update the gallery
```bash
hask-gallery-exe refresh
```
Run the gallery program
```bash
hask-gallery-exe --port 8080
```
Then open the webbrowser to use it
```text
url to open at your browser: http://localhost:8080
```
## Development commands
```bash
# build the project
stack build
# build and run the tests
stack test
# run the gallery
stack run hask-gallery-exe
# show avaliable management commands
stack run hask-gallery-exe help
```
近期下载者:
相关文件:
收藏者: