user234683 / youtube-local

browser-based client for watching Youtube anonymously and with greater page performance
GNU Affero General Public License v3.0
517 stars 63 forks source link

Suggestion: Run example #183

Open danrobi11 opened 11 months ago

danrobi11 commented 11 months ago

Hi. What do you think about the idea to add a simple .bash_aliases example in the README.md Usage section? Im afraid some users might struggle figuring out how to run it.

As for example. Something like this should be pretty straightforward:

alias ytlo="cd ~/.local/bin/youtube-local-2.8.5/ && python3 server.py | (sleep 1;flatpak run org.netsurf_browser.NetSurf http://localhost:8080/)"

Anyhow, Thanks for your project youtube-local.

fredster5 commented 11 months ago

I think a better way of running it would be creating a python virtual environment and then running it from there so it would look like this

first launch

cd youtube-local
python -m venv env
source env/bin/activate
pip install -r requirements.txt
python server.py

then once you wanna reactivate it you'll simply have to just source and start the server

cd youtube-local
source env/bin/activate
python server.py

I think making a virtual environment is the universal method