Assignment Description

To make an API to fetch latest videos sorted in reverse chronological order of their publishing date-time from YouTube for a given tag/search query in a paginated response.

API Description

Docker Instructions

Backend

Frontend

  • Open new terminal/CMD
  • cd ./frontend
  • docker build -t frontend .
  • docker run -it -d -p 3000:80 frontend
  • Visit http://localhost:3000/

Development

How to Setup

  • Install Python 3.x from https://www.python.org/downloads
  • pip install pipenv
  • pipenv shell
  • pipenv install
  • python manage.py makemigrations
  • python manage.py createcachetable
  • python manage.py migrate
  • python manage.py startservice
  • Install LTS version of Node from https://nodejs.org/en/
  • cd frontend/
  • npm i

How to Configure

Django

Node

  • cd frontend
  • npm run build

How to RUN

Django-Q

  • pepenv shell
  • python manage.py qcluster

Django