reddit-slideshow/README.md

65 lines
1.5 KiB
Markdown
Raw Permalink Normal View History

2019-07-27 01:22:51 -05:00
# reddit-slideshow
2023-06-02 14:04:57 -05:00
2019-07-27 01:22:51 -05:00
Site that displays a slideshow with images/gifs obtained from reddit. By default images will be fetched from reddit frontpage.
2020-02-03 06:11:23 -05:00
Currently hosted at https://redditslideshow.com/
2019-07-27 01:22:51 -05:00
2023-06-02 14:04:57 -05:00
## Additional Info
My contribution to this is:
- Serving the application through a Docker image.
- Added a basic landing page with easy to access links for specific slideshows.
### Hosting with Docker
You can base yourself off this `docker-compose.yml` file:
```yaml
version: "3.9"
services:
service:
image: code.moonstar-x.dev/public/reddit-slideshow:latest
restart: unless-stopped
volumes:
- ./settings.json:/usr/share/nginx/html/settings.json
ports:
- 8080:8080
environment:
- TZ=America/Guayaquil
```
The `settings.json` file should contain something like this:
```json
{
"slideshows": [
"funny",
["memes", "pics"]
]
}
```
Single subreddits are strings whereas multireddits are arrays.
2019-07-27 01:22:51 -05:00
## Usage
2019-08-01 23:52:53 -05:00
You can go to the previous/next slide by pressing `A` or `D` respectively, or by using the arrow keys.
2019-07-27 01:22:51 -05:00
You can add, for example, `/r/pics` to the url and data will be fetched from reddit.com/r/pics. Try the following URLs:
2020-02-03 06:11:23 -05:00
- https://redditslideshow.com/r/pics
- https://redditslideshow.com/r/art
- https://redditslideshow.com/r/aww
2019-07-27 01:22:51 -05:00
## Todo
- Detect / handle invalid URLs.
- Better error handling.
2020-02-18 07:44:45 -05:00
- Add tests.
2019-07-27 01:22:51 -05:00
- NSFW filter (some logic already implemented).
2020-02-29 17:08:54 -05:00
- Audio on WebMs.
2019-07-27 01:22:51 -05:00
---
2020-02-03 06:11:23 -05:00
Made with React using `create-react-app`, based on http://redditp.com/