Hosted on my own server with NGINX working as the reverse proxy to the gunicorn socket.
Free SSL/TSL provided by Let's Encrypt using CertBot.
Download subtitles for movies and shows in your preferred language.
Your system should have these installed before you continue with the local setup:
Ignore step 5 for now even if Django tells you to do so as this could pose errors in the future since we don't currently need or have a database.
pip install pipenv
.pipenv install
, which also creates a virtual env.yarn
..env
file and fill it in using the variables listed below.pipenv shell
to activate a sub shell for the virtual environment created.python manage.py migrate
if there are changes made to the database.Keep the the SETTING
variable as it is.
TMDB_KEY=
SECRET_KEY=
SETTING=subtitles.settings.dev
You can either run the production preview which hosted by Django or run the development server made by Vue with features such as hot reloading which is ideal when developing.
yarn build
.pipenv shell
to activate the virtual environment.python manage.py runserver
to start the server.You'd need to run two shell instances here, one for the Vue frontend and one for the Django backend which provides the API endpoints.
pipenv shell
to activate the virtual environment.python manage.py runserver
to start the Django backend.yarn serve
to start the Vue frontend.