Skip to content

ishvaram/Django-Redis-API-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django-Redis-API-

API for TVF media with Redis and Django

  • Install the dependencies

sudo pip install requirement.txt

import the data to redis from json file:

Used the below script to load the data to redis:

import json

import redis

import os,sys

r = redis.StrictRedis(host='localhost', port=6379, db=1)

with open('interview.json') as data_file: test_data = json.load(data_file) r.set('tvf_json', test_data)

Once the import is done:

  • Start the Django App service by running below Command

python manage.py runServer --optional --PORT

https://kovalan-tvfapi.herokuapp.com/tvf/ratingsort?sort=desc

https://kovalan-tvfapi.herokuapp.com/tvf/ratingsort?sort=asc

https://kovalan-tvfapi.herokuapp.com/tvf/list?type=video

https://kovalan-tvfapi.herokuapp.com/tvf/list?type=story

https://kovalan-tvfapi.herokuapp.com/tvf/categories

https://kovalan-tvfapi.herokuapp.com/tvf/all

Releases

No releases published

Packages

No packages published