piotr-kopacki / Finding-Nemo

My solution proposal to STX Junior Python Developer recruitment task

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Finding-Nemo

My solution to STX Junior Python Develeper recruitment tasks.

Installation

Requires Python 3.5+ to run.

Install the dependencies, apply migrations, optionally install fixtures and start the server.

$ cd .\Finding-Nemo\
$ pip install -r requirements.txt
$ python3 manage.py makemigrations
$ python3 manage.py migrate
$ python3 manage.py loaddata movies.json # Optional fixtures
$ python3 manage.py runserver

Running with docker

$ cd .\Finding-Nemo\
$ docker build -t nemo .
$ docker run -p 8000:8000 -i -t nemo

Running the tests

$ python3 manage.py test

API Endpoints

/movies/ - Returns all movies (paginated)
/movies/id/ - Returns details about a movie
/db/ - Loads a dataset from movielens

About

My solution proposal to STX Junior Python Developer recruitment task


Languages

Language:Python 99.3%Language:Dockerfile 0.7%