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
.env
file and fill it in using the variables listed below. - Run
pipenv shell
to activate a sub shell for the virtual environment created. - Run
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.
- Build the frontend with
yarn build
. - Run
pipenv shell
to activate the virtual environment. - Run
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.
- Run
pipenv shell
to activate the virtual environment. - Run
python manage.py runserver
to start the Django backend. - Run
yarn serve
to start the Vue frontend.