https://github.com/dbeley/tuberank
A community website to rate and discover youtube videos.
https://github.com/dbeley/tuberank
django htmx youtube
Last synced: 4 months ago
JSON representation
A community website to rate and discover youtube videos.
- Host: GitHub
- URL: https://github.com/dbeley/tuberank
- Owner: dbeley
- Created: 2023-04-26T09:35:24.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-09T23:51:36.000Z (over 1 year ago)
- Last Synced: 2025-07-09T04:06:42.629Z (11 months ago)
- Topics: django, htmx, youtube
- Language: HTML
- Homepage: https://tuberank.org/en
- Size: 713 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TubeRank
A community website to rate and discover youtube videos.
Built with Django (django-rest-framework, whitenoise), Tailwind (Flowbite) and htmx. Deployed on fly.io.
## Dependencies
- python
- nodejs
- npm
- gettext
## Development
```
python -m venv venv
source venv/bin/activate
pip install poetry
poetry install
```
```
npm install -D tailwindcss
npm install flowbite
npm run tailwind-watch
python manage.py migrate --run-syncdb
```
### Update dependencies
```
poetry update
npm update
npm install -D tailwindcss@latest postcss@latest autoprefixer@latest
```
## Local Deployment
- Create `.env` with the required secrets (see `.env.example` for an example)
## Deployment
Deployment from scratch with fly.io
```
fly launch
fly secrets set LOCAL_DEPLOY="0"
fly secrets set ... # see .env.example for list of environment variables to set
fly deploy
fly certs add domain.tld
fly certs check domain.tld
```
fly.io cheatsheet
```
fly secrets list
fly logs
fly ssh console
fly ssh console --pty -C 'python /code/manage.py migrate'
fly ssh console --pty -C 'python /code/manage.py createsuperuser'
```
### Get all video urls of a YouTube channel
```
yt-dlp -j --flat-playlist $CHANNEL_URL | jq -r '.id' | sed 's_^_https://www.youtube.com/watch?v=_'
```
## Update translations
```
cd ratings
django-admin makemessages -a
```