The main goal is to search for every movie made after 2013, add it to data base and display in table using React-Table.
-
Backend endpoints:
-
/api/movies/
-
Query parameters:
?title - (e.g. ?title=s) Will return every movies that title starts with 's' ?update (boolean) - When update parameter is set to 'true' script will check for updates from 'https://query.wikidata.org' ?page (number) - Go to page (number) ?page_size (number) - Return (number - default 10) objects
-
Example of saved movie in database:
{
"movie": "http://www.wikidata.org/entity/Q18407",
"imdb_id": "tt0053779",
"title": "La Dolce Vita",
"date": "2020-03-20"
}
Go to directory that contains backend files and execute those commands:
$ pip install -r requirements.txt
$ python manage.py runserver
Go to directory that contains backend files and execute those commands:
*
3.xx = your python version. Recomended 3.11
$ virtualenv venv -p python3.xx
$ source ./venv/bin/activate
$ pip install -r requirements.txt
$ python manage.py runserver
Go to directory that contains frontend files and execute those commands:
$ npm i
$ npm start