- Extract the zip file to a directory. This folder is the project directory.
- If you wish to create a virtual environment for python, create and activate it.
- Install the requirements by typing
pip3 install -r requirements.txt
in the project directory. - Change directory to
src/
directory. - Run server with
python3 manage.py runserver
. - Visit http://localhost:8000
- Visit http://127.0.0.1:8000/movie/2515 to see multiple show times of a movie in a single theater ((Berkeley) California Theater has 3 shows)
- To check with different data (with same json format) replace
/src/movie_data.json
with new json file and then runpython3 manage.py reloaddata
(This might take some time).
Run the custom django administration command python3 manage.py reloaddata
- This command will download check for
movie_data.json
file - If it exists, will erase all the data in database and loads it into database
- If the file does not exists, it will be downloaded from http://188.166.208.228/us_movies/ and load it into database.
All the old data will be erased and this process can take lot of time based on data and database.