- redis
pip install redis - sqlparse
pip install sqlparse - bottle
pip install bottle - Run
python Router.py
- cd into
redis-frontNpm install
- Run
npm run build
- Pull the
redis-datasubmodule using
git submodule update
- Navigate to the
movie-databasefolder
cd redis-datasets/movie-database
- While in the directory input the commands below to import movie data
redis-cli -h localhost -p 6379 < ./import_movies.redis
redis-cli -h localhost -p 6379 < ./import_actors.redisMake sure your local Redis server is running using redis-server
After adding data and starting the app via python Router.py, navigate to
http://localhost:8080/api/v1/redis/SELECT AVG(rating), release_year, genre FROM movie GROUP BY CUBE(release_year, genre);
to perform the query SELECT AVG(rating), release_year, genre FROM movie GROUP BY CUBE(release_year, genre);.
This query finds the average rating of movies by release year and genre.