A small tool to get the latest videos for a query on YouTube, a feature they have been missing, so I decided to make it!
- Install chrome and chrome driver.
- Install python poetry
- Install node & npm
- Run
npm install
- Run
poetry install
- Enter it's shell with
poetry shell
- Setup your
.env
file, according to.env.example
- Then run, develop or test
An example local config:
DEBUG=True
EMAIL_HOST=smtp.domain.com
EMAIL_HOST_USER=[email protected]
EMAIL_HOST_PASSWORD=
DEFAULT_FROM_EMAIL=[email protected]
HEROKU=False
For prod (using heroku) you will also need to change HEROKU=False
to True
and to set these additionally with the above:
SITENAME=domain.com
EMAIL_URL_BEGINNING=domain.com
SENTRY_DSN=
Build the css with npm run build
There are two commands which need to be ran concurrently, the first being ./manage.py runserver
and the second being ./manage.py cron
.
The first is the default Django command while the second collects videos and notifies users.
I have included several vs code debug configs for convenience for the commands you can run, you will need to also run npm run watch
if you are developing the frontend.
Just run ./manage.py test
, however the repo needs more tests!