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:
- Python 3.8.x
- NodeJS 14.x.x
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.
- Install pipenv:
pip install pipenv. - Install python dependencies by running
pipenv install, which also creates a virtual env. - Install node dependencies by running
yarn. - Create the
.envfile and fill it in using the variables listed below. - Run
pipenv shellto activate a sub shell for the virtual environment created. - Run
python manage.py migrateif 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.
- Build the frontend with
yarn build. - Run
pipenv shellto activate the virtual environment. - Run
python manage.py runserverto 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.
- Run
pipenv shellto activate the virtual environment. - Run
python manage.py runserverto start the Django backend. - Run
yarn serveto start the Vue frontend.