piotr-kopacki / Brother-Bear

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Brother-Bear

My solution to JMR Junior Python Develeper recruitment task.

Live. Admin credentials: admin admin

Installation

Requires Python 3.5+ to run.

Install the dependencies, apply migrations, and start the server.

$ cd .\Brother-Bear\
$ pip install -r requirements.txt
$ python3 manage.py makemigrations
$ python3 manage.py migrate
$ python3 manage.py runserver

Running with docker

$ cd .\Brother-Bear\
$ docker build -t bear .
$ docker run -p 8000:8000 -i -t bear

Running the tests

$ python3 manage.py test

API Endpoints

/ - ( POST | GET ) Create shortened url
/<str:id> - ( GET ) Returns shortened url

About


Languages

Language:Python 98.4%Language:Dockerfile 1.6%